mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove nested block
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
99aae9686c
commit
4e5c5177c8
1 file changed
+1
-2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user