Skip to content

Commit

Permalink
Refactor 'isArchiveRootDirectory' method for improved readability and…
Browse files Browse the repository at this point in the history
… consistency.
  • Loading branch information
Nurgul Amat committed Nov 20, 2023
1 parent 0f1ec74 commit 4583346
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ boolean isDirectoryEmpty(Path path) throws IOException {
}

boolean isArchiveRootDirectory(File directory) {
return directory != null && directory.equals(this.archiveRootDirectory);
return this.archiveRootDirectory.equals(directory);
}

void deleteParentDirectories(File directory) {
Expand Down

0 comments on commit 4583346

Please sign in to comment.