]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.help.core/src/org/simantics/help/core/Activator.java
Removed redundant Files.exists/isDirectory checks
[simantics/platform.git] / bundles / org.simantics.help.core / src / org / simantics / help / core / Activator.java
index 2cfa03db6fe61795eeadd2ea8e83a6f917ed02bf..80c36be8d688f6e38a6a95aa4fdf964133030dac 100644 (file)
@@ -43,8 +43,7 @@ public class Activator extends AbstractUIPlugin {
         IPath path = Platform.getStateLocation(bundle);
         Path p = Paths.get(path.toOSString());
         directory = p.resolve(HTML_FOLDER);
-        if (!Files.exists(directory))
-            Files.createDirectories(directory);
+        Files.createDirectories(directory);
         
         // Ensure that style.css is inside the html directory
         Path css = directory.resolve("style.css");