]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.backup/src/org/simantics/backup/BackupProviderService.java
Removed redundant Files.exists/isDirectory checks
[simantics/platform.git] / bundles / org.simantics.backup / src / org / simantics / backup / BackupProviderService.java
index 0a40c86f08e3e0da0754653e22840a44040b24fe..3f1aa0e9929aeca128d54f83962972f8432ae843 100644 (file)
@@ -38,8 +38,7 @@ public class BackupProviderService {
     public static void backup(Path targetPath, int revision, Consumer<BackupException> callback) throws BackupException {
         List<IBackupProvider> providers = getBackupProviders();
         try {
-            if (!Files.exists(targetPath))
-                Files.createDirectories(targetPath);
+            Files.createDirectories(targetPath);
             Backups.lock(providers);
             new Thread(() -> {
                 boolean unlockedAlready = false;