From e93ae3003232befa9edefa4fe6721f27a89f78e0 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Wed, 12 May 2021 07:49:38 +0930 Subject: [PATCH] chore: ignore invalid lint errors --- app/core/api-manager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/core/api-manager.ts b/app/core/api-manager.ts index ad0045c31..83e74d4c7 100644 --- a/app/core/api-manager.ts +++ b/app/core/api-manager.ts @@ -76,6 +76,7 @@ export class ApiManager extends EventEmitter { // Create UPC key const file = loadState<{ upc: { apikey: string } }>(configPath); + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion, @typescript-eslint/non-nullable-type-assertion-style const upcApiKey = dotProp.get(file, 'upc.apikey')! as string; if (!upcApiKey) { // Generate api key @@ -288,6 +289,7 @@ export class ApiManager extends EventEmitter { await lock.runExclusive(async () => { apiManagerLogger.debug('Checking API key for validity.'); const file = loadState<{ remote: { apikey: string } }>(filePath); + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion, @typescript-eslint/non-nullable-type-assertion-style const apiKey = dotProp.get(file, 'remote.apikey')! as string; // Same key as current