Skip to content

Commit

Permalink
chore: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 29, 2022
1 parent 2ff392e commit e815629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/metrics/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down

0 comments on commit e815629

Please sign in to comment.