From ad36b7023ac0ae5362978796a399aa53940ded40 Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Thu, 31 Mar 2022 11:47:33 -0400 Subject: [PATCH] Don't bother converting action input to string This has been an established pattern with Actions for a long time; we don't have to worry about it changing. Co-authored-by: James M. Greene --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 41cc5bb..a0efd07 100644 --- a/src/index.js +++ b/src/index.js @@ -52,8 +52,7 @@ process.on('SIGINT', cancelHandler) process.on('SIGTERM', cancelHandler) // Main -// Boolean inputs are stringified, but manually convert this input just in case that changes in the future. -const emitTelemetry = core.getInput("emit_telemetry").toString(); +const emitTelemetry = core.getInput("emit_telemetry") if (emitTelemetry === "true") { require('./pre') } else if (emitTelemetry === "false") {