Skip to content

Commit

Permalink
Remove unneeded return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin committed Mar 30, 2024
1 parent 7c6f50b commit 96edc84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/ui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl<T: Component> Popup<T> {
return EventResult::Ignored(None);
}

return match kind {
match kind {
MouseEventKind::ScrollDown if self.has_scrollbar => {
self.scroll_half_page_down();
EventResult::Consumed(None)
Expand All @@ -211,7 +211,7 @@ impl<T: Component> Popup<T> {
EventResult::Consumed(None)
}
_ => EventResult::Ignored(None),
};
}
}
}

Expand Down

0 comments on commit 96edc84

Please sign in to comment.