Skip to content

Commit 971bd77

Browse files
committed
Removed redundant call to File.deleteIfExists()
file is already checked for being not null, no need to check again.
1 parent 956ddda commit 971bd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/processing/app/helpers/FileUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static void recursiveDelete(File file) {
8585
recursiveDelete(current);
8686
}
8787
}
88-
deleteIfExists(file);
88+
file.delete();
8989
}
9090

9191
public static File createTempFolder() throws IOException {

0 commit comments

Comments
 (0)