aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
index 9ab6f68..dfc5e16 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
@@ -43,9 +43,7 @@ public class Profiles {
}
public static File getProfileDir(String profile) {
- File folder = new File("OneConfig/profiles");
- folder.mkdirs();
- return new File(folder, profile);
+ return new File(new File("OneConfig/profiles"), profile);
}
public static File getProfileFile(String file) {