Skip to content

Commit e815629

Browse files
chore: code formatting
1 parent 2ff392e commit e815629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/app/metrics/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export async function imgb64(image, {width, height, fallback = true} = {}) {
332332
//Load image
333333
try {
334334
//Fix: redirections are not properly supported by jimp (https://github.com/oliver-moran/jimp/issues/909), seems to occur only when in jest environment
335-
if ((typeof image === "string") && ((process.env.JEST_WORKER_ID)||(process.env.METRICS_MOCKED))) {
335+
if ((typeof image === "string") && ((process.env.JEST_WORKER_ID) || (process.env.METRICS_MOCKED))) {
336336
image = (await axios.get(image)).then(response => response.request.responseURL).catch(() => null)
337337
console.debug(`metrics/svg/imgb64 > redirected image link to ${image}`)
338338
}

0 commit comments

Comments
 (0)