aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-05 05:55:35 +0000
committerBlaž Hrastnik2021-12-06 00:36:02 +0000
commitbf8437d098433c25e3eae1291f444130068ef93d (patch)
tree1737b79ac5de788400263a2854f94ccc4dfe74b1 /helix-term
parentdc8df7ba219d9a403ee77027dd5a698f08a1dcce (diff)
clippy lint
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands/dap.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index 336ccf1a..5ed9d04f 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());
}
},
)