From 528768029788985912fe6f0fa68c2098d1f131c9 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 23 May 2023 00:54:07 -0600 Subject: [PATCH] PRevent unused warning --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 271dd3b4..57319a4e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -208,7 +208,7 @@ export const gitFetch = async ({ ) /* istanbul ignore if */ - if (exitCode !== 0 || stderr) { + if (exitCode !== 0) { core.warning(stderr || "Couldn't fetch repository") } @@ -232,7 +232,7 @@ export const gitFetchSubmodules = async ({ ) /* istanbul ignore if */ - if (exitCode !== 0 || stderr) { + if (exitCode !== 0) { core.warning(stderr || "Couldn't fetch submodules") } }