Skip to content

Commit

Permalink
chore: further clean up of things
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Oct 11, 2024
1 parent f2b5620 commit ffb172b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/lib-core/src/templaters/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,9 @@ impl TemplatedFileInner {
first_idx = Some(idx + start_idx);
}

#[allow(clippy::if_same_then_else)]
if elem.templated_slice.start > templated_pos {
break;
} else if !inclusive && elem.templated_slice.end >= templated_pos {
if elem.templated_slice.start > templated_pos
|| (!inclusive && elem.templated_slice.end >= templated_pos)
{
break;
}
}
Expand Down

0 comments on commit ffb172b

Please sign in to comment.