diff options
author | Philipp Mildenberger | 2023-04-06 00:37:43 +0000 |
---|---|---|
committer | Philipp Mildenberger | 2023-05-18 20:04:49 +0000 |
commit | f45bbf165e225142b7f1d9f68d0ffcc9fabd265d (patch) | |
tree | 00d2162bb6fc35400349a5a9c76e380e81dd75e1 /helix-view/src/gutter.rs | |
parent | 656ee24966c17ed505acc2faded2da505e9c7052 (diff) |
Apply all review suggestions (doc_id -> id, error message, unnecessary if)
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
Diffstat (limited to 'helix-view/src/gutter.rs')
-rw-r--r-- | helix-view/src/gutter.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index d11cbe4d..a332a8a3 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -66,9 +66,6 @@ pub fn diagnostic<'doc>( } use helix_core::diagnostic::Severity; let first_diag_idx_maybe_on_line = diagnostics.partition_point(|d| d.line < line); - if first_diag_idx_maybe_on_line == diagnostics.len() { - return None; - } let diagnostics_on_line = diagnostics[first_diag_idx_maybe_on_line..] .iter() .take_while(|d| { |