chore: code formatting

This commit is contained in:
github-actions[bot]
2022-11-22 23:55:28 +00:00
parent f40e0a995d
commit f6e52191c7

View File

@@ -319,7 +319,7 @@ function quit(reason) {
} }
info("Previous render sha", committer.sha ?? "(none)") info("Previous render sha", committer.sha ?? "(none)")
//Compatibility check //Compatibility check
if ((_action === "gist")&&(["png", "jpeg", "markdown-pdf"].includes(_output))) if ((_action === "gist") && (["png", "jpeg", "markdown-pdf"].includes(_output)))
throw new Error(`"config_output: ${_output}" is not supported with "config_action: ${_action}"`) throw new Error(`"config_output: ${_output}" is not supported with "config_action: ${_action}"`)
} }
else if (dryrun) { else if (dryrun) {
@@ -416,7 +416,6 @@ function quit(reason) {
info("MIME type", mime) info("MIME type", mime)
const buffer = typeof rendered === "object" ? rendered instanceof Buffer ? rendered : Buffer.from(JSON.stringify(rendered)) : Buffer.from(`${rendered}`) const buffer = typeof rendered === "object" ? rendered instanceof Buffer ? rendered : Buffer.from(JSON.stringify(rendered)) : Buffer.from(`${rendered}`)
//Debug print //Debug print
if (dprint) { if (dprint) {
info.break() info.break()
@@ -451,8 +450,9 @@ function quit(reason) {
committer.commit = false committer.commit = false
} }
} }
else else {
info("Output condition", `Not applicable for ${_output}`) info("Output condition", `Not applicable for ${_output}`)
}
//Save output to renders output folder //Save output to renders output folder
if (dryrun) if (dryrun)