on master help sign in
clippy
commit53ee57f84a986c6c9d7238531fc9c87db7589072 authorDmitry Sharshakov <d3dx12.xx@gmail.com> dateSun 22 Aug 2021, 15:16 (5 years ago) parentf247858
1 file changed+3−3
helix-term/src/commands.rs+3−3
helix-term/src/commands.rs+3−3
@@ -1932,10 +1932,10 @@ mod cmd {
19321932 use helix_lsp::block_on;
19331933
19341934 let condition = args.join(" ");
1935− let condition = if condition.len() > 0 {
1936− Some(condition)
1937− } else {
1935+ let condition = if condition.is_empty() {
19381936 None
1937+ } else {
1938+ Some(condition)
19391939 };
19401940
19411941 let (view, doc) = current!(cx.editor);