From 7555abecd8fffc2ac0c9724a09366ee9038b400c Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 1 Dec 2021 01:51:48 -0500 Subject: [PATCH] Avoids as any --- src/commands/git/fetch.ts | 2 +- src/commands/git/pull.ts | 2 +- src/commands/git/push.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/git/fetch.ts b/src/commands/git/fetch.ts index 29a7c50..910483a 100644 --- a/src/commands/git/fetch.ts +++ b/src/commands/git/fetch.ts @@ -76,7 +76,7 @@ export class FetchGitCommand extends QuickCommand { } if (state.repos != null && !Array.isArray(state.repos)) { - state.repos = [state.repos as any]; + state.repos = [state.repos as string]; } let skippedStepOne = false; diff --git a/src/commands/git/pull.ts b/src/commands/git/pull.ts index 19c3e16..45316c1 100644 --- a/src/commands/git/pull.ts +++ b/src/commands/git/pull.ts @@ -82,7 +82,7 @@ export class PullGitCommand extends QuickCommand { } if (state.repos != null && !Array.isArray(state.repos)) { - state.repos = [state.repos as any]; + state.repos = [state.repos as string]; } let skippedStepOne = false; diff --git a/src/commands/git/push.ts b/src/commands/git/push.ts index ef39539..01304b6 100644 --- a/src/commands/git/push.ts +++ b/src/commands/git/push.ts @@ -88,7 +88,7 @@ export class PushGitCommand extends QuickCommand { } if (state.repos != null && !Array.isArray(state.repos)) { - state.repos = [state.repos as any]; + state.repos = [state.repos as string]; } let skippedStepOne = false;