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 26, 2022
1 parent 5f5357b commit a1be8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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)) {
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}`)
}
Expand Down
2 changes: 1 addition & 1 deletion source/app/web/statics/app.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a1be8c5

Please sign in to comment.