clippy
This commit is contained in:
parent
f247858055
commit
53ee57f84a
1 changed files with 3 additions and 3 deletions
|
@ -1932,10 +1932,10 @@ mod cmd {
|
||||||
use helix_lsp::block_on;
|
use helix_lsp::block_on;
|
||||||
|
|
||||||
let condition = args.join(" ");
|
let condition = args.join(" ");
|
||||||
let condition = if condition.len() > 0 {
|
let condition = if condition.is_empty() {
|
||||||
Some(condition)
|
|
||||||
} else {
|
|
||||||
None
|
None
|
||||||
|
} else {
|
||||||
|
Some(condition)
|
||||||
};
|
};
|
||||||
|
|
||||||
let (view, doc) = current!(cx.editor);
|
let (view, doc) = current!(cx.editor);
|
||||||
|
|
Loading…
Reference in a new issue