aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-22 12:16:59 +0000
committerDmitry Sharshakov2021-08-22 12:16:59 +0000
commit53ee57f84a986c6c9d7238531fc9c87db7589072 (patch)
tree4d36d780ab806a1e2ecb0a2213e910bfd3632732 /helix-term
parentf247858055ee17e6d4a61d7284548febe1d7f54d (diff)
clippy
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 49d6bf3f..e35b5d51 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1932,10 +1932,10 @@ mod cmd {
use helix_lsp::block_on;
let condition = args.join(" ");
- let condition = if condition.len() > 0 {
- Some(condition)
- } else {
+ let condition = if condition.is_empty() {
None
+ } else {
+ Some(condition)
};
let (view, doc) = current!(cx.editor);