From e8156294db0b1ec6d1eb7e3fc2e490433d3717fb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Jun 2022 04:44:10 +0000 Subject: [PATCH] chore: code formatting --- source/app/metrics/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/metrics/utils.mjs b/source/app/metrics/utils.mjs index b6fa9ee022e..61e59ca29c6 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)||(process.env.METRICS_MOCKED))) { + if ((typeof image === "string") && ((process.env.JEST_WORKER_ID) || (process.env.METRICS_MOCKED))) { image = (await axios.get(image)).then(response => response.request.responseURL).catch(() => null) console.debug(`metrics/svg/imgb64 > redirected image link to ${image}`) }