Skip to content

Commit 6d68c59

Browse files
committed
is none or
1 parent 8f1dfcb commit 6d68c59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ruff_linter/src/suppression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl Suppressions {
228228
grouped_diagnostic: &Option<(TextRange, SuppressionDiagnostic)>|
229229
-> bool {
230230
if let Some((group_key, group)) = grouped_diagnostic
231-
&& (key.is_none() || key.is_some_and(|key| key != *group_key))
231+
&& key.is_none_or(|key| key != *group_key)
232232
{
233233
if group.any_invalid() {
234234
Suppressions::report_suppression_codes(

0 commit comments

Comments
 (0)