Skip to content

Commit

Permalink
Lint for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fdaugan committed Aug 29, 2023
1 parent 5f10bb1 commit 34623d5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,11 @@ private boolean hasAttributeChange(final SimpleUser user1, final SimpleUser user
final var predicateFalse = Arrays.stream(equals)
.filter(f -> !StringUtils.equalsIgnoreCase(StringUtils.trimToNull(f.apply(user2)),
StringUtils.trimToNull(f.apply(user1)))).findFirst().orElse(null);
return predicateFalse != null && hasAttributeChange(user1, true,
String.format("'%s' != '%s'", predicateFalse.apply(user1), predicateFalse.apply(user2)));
if (predicateFalse != null) {
return hasAttributeChange(user1, true,
String.format("'%s' != '%s'", predicateFalse.apply(user1), predicateFalse.apply(user2)));
}
return false;
}

/**
Expand Down

0 comments on commit 34623d5

Please sign in to comment.