Minify match

This commit is contained in:
Matthias Beyer 2017-06-03 14:43:46 +02:00
parent d3d6e830d7
commit 0f47c4afc7

View file

@ -394,11 +394,9 @@ impl<'a> Runtime<'a> {
self.cli()
.value_of("editor")
.map(String::from)
.or({
match self.configuration {
Some(ref c) => c.editor().cloned(),
_ => None,
}
.or(match self.configuration {
Some(ref c) => c.editor().cloned(),
_ => None,
})
.or(env::var("EDITOR").ok())
.map(Command::new)