diff --git a/.eslintrc.json b/.eslintrc.json index 3056df1..32ba1b6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -26,6 +26,13 @@ "no-useless-rename": "error", "prefer-promise-reject-errors": "error", "eqeqeq": "error", + "prefer-destructuring": [ + "error", + { + "array": false, + "object": true + } + ], "import/no-extraneous-dependencies": [ "error", diff --git a/src/main/modules/store/store.ts b/src/main/modules/store/store.ts index 0ac9e76..6a1436f 100644 --- a/src/main/modules/store/store.ts +++ b/src/main/modules/store/store.ts @@ -21,7 +21,7 @@ export class Store implements IStore { public async save(key: StoreKey, data: unknown): Promise { const c = await getConnection(Database.STORE); - const manager = c.manager; + const { manager } = c; const storeValue = new StoreValue(); storeValue.key = key; storeValue.value = data;