Skip to content

Commit

Permalink
Delete needless if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
k3p7i3 committed Mar 15, 2024
1 parent d544384 commit 99a5fa8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions qulice-pmd/src/main/java/com/qulice/pmd/PmdListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,9 @@ public void ruleViolationAdded(final RuleViolation violation) {
/**
* Registers a new ProcessingError.
* @param error A processing error that needs to be reported.
* @todo #1129 If was added to avoid failing build, but there should be
* better place for this check.
*/
public void onProcessingError(final ProcessingError error) {
if (error.getFile().endsWith(".java")) {
this.errors.add(new PmdError.OfProcessingError(error));
}
this.errors.add(new PmdError.OfProcessingError(error));
}

/**
Expand Down

0 comments on commit 99a5fa8

Please sign in to comment.