diff --git a/.github/scripts/presets_examples.mjs b/.github/scripts/presets_examples.mjs index 534f7c07..5c56f393 100644 --- a/.github/scripts/presets_examples.mjs +++ b/.github/scripts/presets_examples.mjs @@ -15,7 +15,7 @@ const __metrics = paths.join(paths.dirname(url.fileURLToPath(import.meta.url)), const __presets = paths.join(__metrics, ".presets") 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" repo = repo || "lowlighter/metrics" console.log(`cloning: ${repo}@${branch}`) diff --git a/tests/presets.test.js b/tests/presets.test.js index ad7bcb7f..04b0d969 100644 --- a/tests/presets.test.js +++ b/tests/presets.test.js @@ -13,7 +13,7 @@ try { fss.accessSync(__presets) } catch { - let {HEAD_REF:branch, REPO:repo} = process.env + let { HEAD_REF: branch, REPO: repo } = process.env branch = branch || "presets" repo = repo || "lowlighter/metrics" console.log(`cloning: ${repo}@${branch}`)