From e02e5113eddc911dd5a75f1554ed0f0d11278a02 Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Tue, 6 Dec 2022 10:03:48 +0000 Subject: [PATCH] Removed return type in promise --- src/restoreImpl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/restoreImpl.ts b/src/restoreImpl.ts index 868e812..679dcd2 100644 --- a/src/restoreImpl.ts +++ b/src/restoreImpl.ts @@ -5,7 +5,7 @@ import { Events, Inputs, Outputs, State } from "./constants"; import { IOutputSetter } from "./outputSetter"; import * as utils from "./utils/actionUtils"; -async function run(outputter: IOutputSetter): Promise { +async function run(outputter: IOutputSetter): Promise { try { if (!utils.isCacheFeatureAvailable()) { utils.setCacheHitOutput(false); @@ -59,7 +59,7 @@ async function run(outputter: IOutputSetter): Promise { outputter.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); core.info(`Cache restored from key: ${cacheKey}`); - return cacheKey; + return; } catch (error: unknown) { core.setFailed((error as Error).message); }