Merge pull request #1788 from zed-industries/style
Apply a slight stylistic tweak
This commit is contained in:
commit
77b13b1356
1 changed files with 2 additions and 4 deletions
|
@ -301,9 +301,7 @@ impl Keystroke {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if key.is_none() {
|
let key = key.ok_or_else(|| anyhow!("Invalid keystroke `{}`", source))?;
|
||||||
return Err(anyhow!("Invalid keystroke `{}`", source));
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(Keystroke {
|
Ok(Keystroke {
|
||||||
ctrl,
|
ctrl,
|
||||||
|
@ -311,7 +309,7 @@ impl Keystroke {
|
||||||
shift,
|
shift,
|
||||||
cmd,
|
cmd,
|
||||||
function,
|
function,
|
||||||
key: key.unwrap(),
|
key,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue