mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
config: Remove redundant directory creation for config file
This commit is contained in:
@@ -62,11 +62,6 @@ public class Config {
|
|||||||
*/
|
*/
|
||||||
public void reload() {
|
public void reload() {
|
||||||
if (!configFile.exists()) {
|
if (!configFile.exists()) {
|
||||||
if (!configFile.mkdirs()) {
|
|
||||||
logger.error("Failed to create directories for config file: " + configFile.getAbsolutePath());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!configFile.createNewFile()) {
|
if (!configFile.createNewFile()) {
|
||||||
logger.error("Failed to create config file: " + configFile.getAbsolutePath());
|
logger.error("Failed to create config file: " + configFile.getAbsolutePath());
|
||||||
|
|||||||
Reference in New Issue
Block a user