Skip to content

Commit

Permalink
Do not call normalizePath inside the loop for the same variable + jus…
Browse files Browse the repository at this point in the history
…t call it if everything else is fine.
  • Loading branch information
filipelautert committed Sep 1, 2023
1 parent 1793d6d commit 5f3738d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ public List<ChangeSet> getChangeSets(String path, String author, String id) {
for (ChangeSet changeSet : this.changeSets) {
if (changeSet.getAuthor().equalsIgnoreCase(author) && changeSet.getId().equalsIgnoreCase(id) && isDbmsMatch(changeSet.getDbmsSet())) {
final String changesetNormalizedPath = normalizePath(changeSet.getFilePath());
if (changesetNormalizedPath != null &&
changesetNormalizedPath.equalsIgnoreCase(normalizedPath)) {
if (changesetNormalizedPath != null && changesetNormalizedPath.equalsIgnoreCase(normalizedPath)) {
changeSetsToReturn.add(changeSet);
}
}
Expand Down

0 comments on commit 5f3738d

Please sign in to comment.