Skip to content

Commit

Permalink
Use null-safe == on enum member
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornaton committed Oct 4, 2022
1 parent dbcab6a commit 566e532
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static Set<String> getDistinctContributions(List<Replicate> replicates) {
for (Replicate replicate : replicates) {

ReplicateStatus lastRelevantStatus = replicate.getLastRelevantStatus();
if (lastRelevantStatus.equals(ReplicateStatus.CONTRIBUTED)) {
if (lastRelevantStatus == ReplicateStatus.CONTRIBUTED) {
distinctContributions.add(replicate.getContributionHash());
}
}
Expand Down

0 comments on commit 566e532

Please sign in to comment.