Skip to content

Commit e39e792

Browse files
author
Nurgul Amat
committed
Fixed code defect
1 parent 67c32cc commit e39e792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pl/damianszczepanik/jenkins/buildhistorymanager/model/actions/DeleteArtifactsWithPatternAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public boolean shouldDeleteDirectory(File dir) throws IOException {
117117
}
118118

119119
public void deleteParentDirectories(File directory) {
120-
File parent = directory.getParentFile();
120+
File parent = directory;
121121
while (parent != null && !parent.getPath().equals(this.archiveRootPath)) {
122122
if (!parent.delete()) {
123123
break;

0 commit comments

Comments
 (0)