chore: code formatting

This commit is contained in:
github-actions[bot]
2022-01-27 03:47:57 +00:00
parent 317914838f
commit fe141c4b63
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ const __metrics = paths.join(paths.dirname(url.fileURLToPath(import.meta.url)),
const __presets = paths.join(__metrics, ".presets") const __presets = paths.join(__metrics, ".presets")
if ((!await fs.access(__presets).then(_ => true).catch(_ => false)) || (!(await fs.lstat(__presets)).isDirectory())) { if ((!await fs.access(__presets).then(_ => true).catch(_ => false)) || (!(await fs.lstat(__presets)).isDirectory())) {
let {HEAD_REF:branch, REPO:repo} = process.env let { HEAD_REF: branch, REPO: repo } = process.env
branch = branch || "presets" branch = branch || "presets"
repo = repo || "lowlighter/metrics" repo = repo || "lowlighter/metrics"
console.log(`cloning: ${repo}@${branch}`) console.log(`cloning: ${repo}@${branch}`)

View File

@@ -13,7 +13,7 @@ try {
fss.accessSync(__presets) fss.accessSync(__presets)
} }
catch { catch {
let {HEAD_REF:branch, REPO:repo} = process.env let { HEAD_REF: branch, REPO: repo } = process.env
branch = branch || "presets" branch = branch || "presets"
repo = repo || "lowlighter/metrics" repo = repo || "lowlighter/metrics"
console.log(`cloning: ${repo}@${branch}`) console.log(`cloning: ${repo}@${branch}`)