fixed text editor
[instantlauncher.git] / src / main / java / eu / svjatoslav / instantlauncher / FileAssociationManager.java
index e9ffd0f..68f8a91 100755 (executable)
@@ -57,14 +57,11 @@ public class FileAssociationManager {
 
             final String[] c = new String[commands.length];
 
-            for (int i = 0; i < commands.length; i++) {
-
-                if (commands[i].equals(FILE_INDICATOR)) {
+            for (int i = 0; i < commands.length; i++)
+                if (commands[i].equals(FILE_INDICATOR))
                     c[i] = file.getAbsolutePath();
-                } else {
+                else
                     c[i] = commands[i];
-                }
-            }
 
             try {
                 Runtime.getRuntime().exec(c);
@@ -75,9 +72,8 @@ public class FileAssociationManager {
             }
 
             return true;
-        } else {
+        } else
             return false;
-        }
 
     }