Skip to content

Commit

Permalink
Simplify is suppressed check
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Jonsey committed Nov 27, 2024
1 parent 9986637 commit 2b24b91
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void extractAdditionalProperties(final IssueBuilder builder, final Violation vio

@Override
boolean isValid(final Violation violation) {
return !(violation.getSpecifics().containsKey("suppressed")
&& violation.getSpecifics().get("suppressed").equals("true"));
return violation.getSpecifics().getOrDefault("suppressed", "false").equals("false");
}

private String removePrefix(final String fileName) {
Expand Down

0 comments on commit 2b24b91

Please sign in to comment.