From 123bd6e67004a59db11ac2019c5607e269d57fbd Mon Sep 17 00:00:00 2001 From: Michal Kleszcz Date: Mon, 5 Feb 2024 10:01:00 +0100 Subject: [PATCH] chore: Fix lint some warnings --- src/base.command.ts | 2 +- src/utils/env-loader.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base.command.ts b/src/base.command.ts index 0bba184..7c64da0 100644 --- a/src/base.command.ts +++ b/src/base.command.ts @@ -40,7 +40,7 @@ export abstract class BaseCommand extends Command { } } - async _run() { + async _run(): Promise { let err; let result; try { diff --git a/src/utils/env-loader.ts b/src/utils/env-loader.ts index 9180def..9f3970e 100644 --- a/src/utils/env-loader.ts +++ b/src/utils/env-loader.ts @@ -192,7 +192,7 @@ export class EnvLoaderUI { protected promptConfig: EnvTemplateConfig = envPromptConfig ) {} - async load() { + async load(): Promise { // eslint-disable-next-line guard-for-in for (const sectionKey in this.promptConfig) { const envSection = this.promptConfig[sectionKey]; @@ -207,7 +207,7 @@ export class EnvLoaderUI { } } - getValue(name: string) { + getValue(name: string): string | null { const v = this.envs[name] ?? null; if (v !== null) { return v;