Skip to content

Commit

Permalink
Remove custom exception for unknown violation types (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Nov 10, 2022
1 parent df2bdd3 commit 1863811
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ private void addElement(Issue issue, InfectedFile infectedFile) {
securityViolationsTable.addElement(issue, infectedFile);
} else if (issueType == Issue.IssueType.LICENSE) {
licenseViolationsTable.addElement(issue, infectedFile);
} else {
throw new IllegalArgumentException(String.format("Illegal issue type '%s'. Expecting either 'Security' or 'License'", issue.getType()));
}
}
}

0 comments on commit 1863811

Please sign in to comment.