From 4583346f3f6138fc2f234a87c4823207454a4d19 Mon Sep 17 00:00:00 2001 From: Nurgul Amat Date: Thu, 16 Nov 2023 12:59:51 -0500 Subject: [PATCH] Refactor 'isArchiveRootDirectory' method for improved readability and consistency. --- .../model/actions/DeleteArtifactsMatchingPatternsAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java b/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java index cbead8ad..5af9c9d2 100644 --- a/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java +++ b/src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsMatchingPatternsAction.java @@ -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) {