OSDN Git Service

change detaile
authoryuu <hayashi.yuu@gmail.com>
Sat, 24 Nov 2018 00:27:37 +0000 (09:27 +0900)
committeryuu <hayashi.yuu@gmail.com>
Sat, 24 Nov 2018 00:27:37 +0000 (09:27 +0900)
src/hayashi/tools/files/DeleteDir.java

index 29525c4..60af61a 100644 (file)
@@ -44,11 +44,8 @@ public class DeleteDir
                 }\r
             }\r
         }\r
-        if (file.delete()) {\r
-                       System.out.println(" ... [DELETE]");\r
-        }\r
-        else {\r
-                       System.out.println(" ... [ERROR!]");\r
+        if (!file.delete()) {\r
+            System.out.println(" ... [ERROR!]");\r
         }\r
         return;\r
     }\r