Skip to content

Commit d9211f7

Browse files
tausbnCopilot
andauthored
yeast: Fix condition to return empty_at_start for range match
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 364d59c commit d9211f7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎shared/yeast/src/range.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ impl Range {
7878
loop {
7979
let previous = self;
8080
for range in &ignored {
81-
if *range == self {
82-
self = self.empty_at_start();
83-
continue;
81+
if *range == self {
82+
return self.empty_at_start();
8483
}
8584
if range.start_byte == self.start_byte && range.end_byte > range.start_byte {
8685
self.start_byte = range.end_byte;

0 commit comments

Comments
 (0)