Skip to content

Commit

Permalink
🔨 added skip final warn
Browse files Browse the repository at this point in the history
  • Loading branch information
migbro committed Feb 5, 2024
1 parent c5ec38b commit 2e5b08d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/annotate_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ pub fn annotate_main(
record.pos() + 1
);
}
if skip_warn == 9 { eprintln!("not reporting further warnings") }
skip_warn += 1;
ovcf.write(&record).expect("failed to write record");
continue;
Expand Down

2 comments on commit 2e5b08d

@brentp
Copy link
Owner

@brentp brentp commented on 2e5b08d Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a nitpick, but could you put it in the other conditional so we save some cycles?

@migbro
Copy link
Contributor Author

@migbro migbro commented on 2e5b08d Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, always a fan of increased efficiency

Please sign in to comment.