aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/gutter.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs
index f1127b6e..e156b9e5 100644
--- a/helix-view/src/gutter.rs
+++ b/helix-view/src/gutter.rs
@@ -119,12 +119,7 @@ pub fn breakpoints<'doc>(
Box::new(move |line: usize, _selected: bool, out: &mut String| {
let breakpoint = breakpoints
.iter()
- .find(|breakpoint| breakpoint.line == line);
-
- let breakpoint = match breakpoint {
- Some(b) => b,
- None => return None,
- };
+ .find(|breakpoint| breakpoint.line == line)?;
let mut style = if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
error.add_modifier(Modifier::UNDERLINED)