1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Update ConfigManager.js

This commit is contained in:
MinusGix 2019-04-27 17:21:05 -05:00 committed by GitHub
parent 6643bb5253
commit db0ff07d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,10 @@ class ConfigManager {
const backupPath = await this.backup(); const backupPath = await this.backup();
try { try {
fse.writeJSONSync(this.configPath, this.config); fse.writeJSONSync(this.configPath, this.config, {
// Indent with two spaces
spaces: 2,
});
fse.removeSync(backupPath); fse.removeSync(backupPath);
return true; return true;