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
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

View File

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