on master help sign in
clippy lint
commitbf8437d098433c25e3eae1291f444130068ef93d authorBlaž Hrastnik <blaz@mxxn.io> dateSun 5 Dec 2021, 14:55 (5 years ago) parentdc8df7b
1 file changed+7−9
helix-term/src/commands/dap.rs+7−9
helix-term/src/commands/dap.rs+7−9
@@ -403,15 +403,13 @@ fn debug_parameter_prompt(
403403 Ok(call)
404404 });
405405 cx.jobs.callback(callback);
406− } else {
407− if let Err(e) = dap_start_impl(
408− cx,
409− Some(&config_name),
410− None,
411− Some(params.iter().map(|x| x.as_str()).collect()),
412− ) {
413− cx.editor.set_error(e.to_string());
414− }
406+ } else if let Err(e) = dap_start_impl(
407+ cx,
408+ Some(&config_name),
409+ None,
410+ Some(params.iter().map(|x| x.as_str()).collect()),
411+ ) {
412+ cx.editor.set_error(e.to_string());
415413 }
416414 },
417415 )