on master help sign in
clippy
53ee57fDmitry Sharshakov
helix-term/src/commands.rs+3−3
@@ -1932,10 +1932,10 @@ mod cmd {
1932 use helix_lsp::block_on;
1932 use helix_lsp::block_on;
1933
1933
1934 let condition = args.join(" ");
1934 let condition = args.join(" ");
1935− let condition = if condition.len() > 0 {
1935+ let condition = if condition.is_empty() {
1936− Some(condition)
1937− } else {
1938 None
1936 None
1937+ } else {
1938+ Some(condition)
1939 };
1939 };
1940
1940
1941 let (view, doc) = current!(cx.editor);
1941 let (view, doc) = current!(cx.editor);