fix: 避免重复reload
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
This commit is contained in:
1 parent
89b9610016
commit
425c3c6432
1 file changed
-1
@@ -34,7 +34,6 @@ export abstract class ConfigBase<T> {
|
|||||||
if (fs.existsSync(defaultConfigPath)) {
|
if (fs.existsSync(defaultConfigPath)) {
|
||||||
this.configData = this.loadConfig(defaultConfigPath);
|
this.configData = this.loadConfig(defaultConfigPath);
|
||||||
}
|
}
|
||||||
this.validate(this.configData);
|
|
||||||
this.save();
|
this.save();
|
||||||
return this.configData;
|
return this.configData;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user