Remove nested block

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-06 10:21:12 -04:00
1 parent 99aae9686c
commit 4e5c5177c8
1 file changed
+1 -2
+1 -2
View File
@@ -58,13 +58,12 @@ export abstract class BaseStore<T> extends Singleton {
logger.info(`[STORE]: LOADED from ${this.path}`); logger.info(`[STORE]: LOADED from ${this.path}`);
{
const res: any = this.fromStore(this.storeConfig.store); const res: any = this.fromStore(this.storeConfig.store);
if (res instanceof Promise || (typeof res === "object" && res && typeof res.then === "function")) { if (res instanceof Promise || (typeof res === "object" && res && typeof res.then === "function")) {
console.error(`${this.name} extends BaseStore<T>'s fromStore method returns a Promise or promise-like object. This is an error and must be fixed.`); console.error(`${this.name} extends BaseStore<T>'s fromStore method returns a Promise or promise-like object. This is an error and must be fixed.`);
} }
}
this.enableSync(); this.enableSync();
} }