Minify match

This commit is contained in:
Matthias Beyer 2017-06-03 14:43:46 +02:00
parent d3d6e830d7
commit 0f47c4afc7
1 changed files with 3 additions and 5 deletions

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)