chore: code formatting

This commit is contained in:
github-actions[bot]
2022-02-09 00:57:21 +00:00
parent 58ff5eee45
commit c7eed05f15
2 changed files with 3 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
//Committer //Committer
const committer = {} const committer = {}
if ((!dryrun)&&(_action !== "none")) { if ((!dryrun) && (_action !== "none")) {
//Compute committer informations //Compute committer informations
committer.token = _token || token committer.token = _token || token
committer.gist = _action === "gist" ? _gist : null committer.gist = _action === "gist" ? _gist : null
@@ -245,6 +245,7 @@ async function retry(func, {retries = 1, delay = 0} = {}) {
} }
else else
throw error throw error
} }
//Retrieve previous render SHA to be able to update file content through API //Retrieve previous render SHA to be able to update file content through API
committer.sha = null committer.sha = null

View File

@@ -260,6 +260,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
} }
else else
value = process.env[`INPUT_${key.toUpperCase()}`]?.trim() ?? "<default-value>" value = process.env[`INPUT_${key.toUpperCase()}`]?.trim() ?? "<default-value>"
const unspecified = value === "<default-value>" const unspecified = value === "<default-value>"
//From presets //From presets
if ((key in preset) && (unspecified)) { if ((key in preset) && (unspecified)) {