From c7eed05f15057b127b9a405e5042546efa0c1f00 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 00:57:21 +0000 Subject: [PATCH] chore: code formatting --- source/app/action/index.mjs | 3 ++- source/app/metrics/metadata.mjs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index f271f40d..ceee2c34 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -203,7 +203,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) { //Committer const committer = {} - if ((!dryrun)&&(_action !== "none")) { + if ((!dryrun) && (_action !== "none")) { //Compute committer informations committer.token = _token || token committer.gist = _action === "gist" ? _gist : null @@ -245,6 +245,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) { } else throw error + } //Retrieve previous render SHA to be able to update file content through API committer.sha = null diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index eb83265f..287fe90c 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -260,6 +260,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { } else value = process.env[`INPUT_${key.toUpperCase()}`]?.trim() ?? "" + const unspecified = value === "" //From presets if ((key in preset) && (unspecified)) {