Skip to content

Commit 5641aff

Browse files
committed
Minor change
1 parent cd1888a commit 5641aff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dev/_2lstudios/viarewindpotions/utils/ConfigurationUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import org.bukkit.plugin.Plugin;
55

66
import java.io.File;
7-
import java.io.InputStream;
8-
import java.nio.file.Files;
97

108
public class ConfigurationUtil {
119
final private Plugin plugin;
@@ -20,8 +18,9 @@ public YamlConfiguration getConfiguration(String filePath) {
2018

2119
if (file.exists()) {
2220
return YamlConfiguration.loadConfiguration(file);
21+
} else {
22+
return new YamlConfiguration();
2323
}
24-
else return new YamlConfiguration();
2524
}
2625

2726
}

0 commit comments

Comments
 (0)