From a1be8c5a01b7b5d0719fd111e72e2002987c6270 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 Jun 2022 21:45:30 +0000 Subject: [PATCH] chore: code formatting --- source/app/metrics/utils.mjs | 2 +- source/app/web/statics/app.placeholder.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app/metrics/utils.mjs b/source/app/metrics/utils.mjs index 9cbd26fa76b..c55bf9231a9 100644 --- a/source/app/metrics/utils.mjs +++ b/source/app/metrics/utils.mjs @@ -332,7 +332,7 @@ export async function imgb64(image, {width, height, fallback = true} = {}) { //Load image try { //Fix: redirections are not properly supported by jimp (https://github.com/oliver-moran/jimp/issues/909), seems to occur only when in jest environment - if ((typeof image === "string")&&(process.env.JEST_WORKER_ID)) { + if ((typeof image === "string") && (process.env.JEST_WORKER_ID)) { image = (await axios.get(image)).then(response => response.request.responseURL).catch(() => null) console.debug(`metrics/svg/imgb64 > redirected image link to ${image}`) } diff --git a/source/app/web/statics/app.placeholder.js b/source/app/web/statics/app.placeholder.js index 0670c136750..3bccf9013f8 100644 --- a/source/app/web/statics/app.placeholder.js +++ b/source/app/web/statics/app.placeholder.js @@ -653,7 +653,7 @@ {score: faker.datatype.float({max: 1}), title: "Accessibility"}, {score: faker.datatype.float({max: 1}), title: "Best Practices"}, {score: faker.datatype.float({max: 1}), title: "SEO"}, - ... options["pagespeed.pwa"] ? [{score : faker.datatype.number({max: 1}), title: "PWA"}] : [] + ...options["pagespeed.pwa"] ? [{score: faker.datatype.number({max: 1}), title: "PWA"}] : [], ], metrics: { observedFirstContentfulPaint: faker.datatype.number(500),