From 971bd770585c4612604ceda3372a082d20ad946c Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 14 May 2015 19:36:37 +0200 Subject: [PATCH] Removed redundant call to File.deleteIfExists() file is already checked for being not null, no need to check again. --- arduino-core/src/processing/app/helpers/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-core/src/processing/app/helpers/FileUtils.java b/arduino-core/src/processing/app/helpers/FileUtils.java index be3f87728..186141cf5 100644 --- a/arduino-core/src/processing/app/helpers/FileUtils.java +++ b/arduino-core/src/processing/app/helpers/FileUtils.java @@ -85,7 +85,7 @@ public class FileUtils { recursiveDelete(current); } } - deleteIfExists(file); + file.delete(); } public static File createTempFolder() throws IOException {