From 16c2cc3376a819b74d16e617f8a68a6dff34bd79 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Mon, 26 Oct 2020 19:50:18 +0100 Subject: [PATCH] Fix const --- action/dist/index.js | 2 +- action/index.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action/dist/index.js b/action/dist/index.js index 4ec73508..d60c9e7e 100644 --- a/action/dist/index.js +++ b/action/dist/index.js @@ -874,7 +874,7 @@ var E_Users_lecoq_Documents_GitHub_gitstats_node_modules_actions_github_lib_gith followup:{enabled:bool(core.getInput("plugin_followup"))}, music:{enabled:bool(core.getInput("plugin_music"))} } - const q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) + let q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`) //Additional plugins options //Pagespeed diff --git a/action/index.mjs b/action/index.mjs index 0b2570ef..24f64b24 100644 --- a/action/index.mjs +++ b/action/index.mjs @@ -81,7 +81,7 @@ followup:{enabled:bool(core.getInput("plugin_followup"))}, music:{enabled:bool(core.getInput("plugin_music"))} } - const q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) + let q = Object.fromEntries(Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => [key, true])) console.log(`Plugins enabled | ${Object.entries(plugins).filter(([key, plugin]) => plugin.enabled).map(([key]) => key).join(", ")}`) //Additional plugins options //Pagespeed