From 2b2ecc2dd17051e279547fda01783c3d42ad66ed Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 8 Dec 2019 15:21:57 +0900 Subject: [PATCH] src: Rename showVersion() --- src/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index b597dd1..3b3925d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,8 +5,7 @@ import installer from './installer'; // most @actions toolkit packages have async methods async function run() { - const dump = async () => { - // Show version + const showVersion = async () => { await exec.exec('hugo version'); }; @@ -18,7 +17,7 @@ async function run() { async function(latestVersion): Promise { console.log(`Hugo version: ${latestVersion} (${hugoVersion})`); await installer(latestVersion); - await dump(); + await showVersion(); }, function(error) { core.setFailed(error); @@ -27,7 +26,7 @@ async function run() { } else { console.log(`Hugo version: ${hugoVersion}`); await installer(hugoVersion); - await dump(); + await showVersion(); } } catch (error) { core.setFailed(error.message);