Skip to content

Commit

Permalink
try to make code style checker happy
Browse files Browse the repository at this point in the history
and still preserve readability
  • Loading branch information
ferkulat committed Nov 14, 2021
1 parent 54265f4 commit d34a47b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ protected Optional<Issue> createIssue(final Matcher matcher, final LookaheadStre
}

private Severity getSeverity(final String severityText) {
if (severityText.contains("CRITICAL")) { return Severity.ERROR; }
if (severityText.contains("HIGH" )) { return Severity.WARNING_HIGH; }
if (severityText.contains("MEDIUM" )) { return Severity.WARNING_NORMAL;}
if (severityText.contains("CRITICAL")) return Severity.ERROR;
if (severityText.contains("HIGH")) return Severity.WARNING_HIGH;
if (severityText.contains("MEDIUM")) return Severity.WARNING_NORMAL;

return Severity.WARNING_LOW;
}
Expand Down

0 comments on commit d34a47b

Please sign in to comment.