From bf8437d098433c25e3eae1291f444130068ef93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 5 Dec 2021 14:55:35 +0900 Subject: [PATCH] clippy lint --- helix-term/src/commands/dap.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index 336ccf1aa..5ed9d04fb 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -403,15 +403,13 @@ fn debug_parameter_prompt( Ok(call) }); cx.jobs.callback(callback); - } else { - if let Err(e) = dap_start_impl( - cx, - Some(&config_name), - None, - Some(params.iter().map(|x| x.as_str()).collect()), - ) { - cx.editor.set_error(e.to_string()); - } + } else if let Err(e) = dap_start_impl( + cx, + Some(&config_name), + None, + Some(params.iter().map(|x| x.as_str()).collect()), + ) { + cx.editor.set_error(e.to_string()); } }, )