chore: code formatting

This commit is contained in:
github-actions[bot]
2022-04-23 23:18:43 +00:00
parent 73cd43c18f
commit 4c98629bbc
130 changed files with 1839 additions and 1788 deletions

View File

@@ -12,7 +12,7 @@ export default async function({login, imports, data, q, account}, {enabled = fal
if (!/^https?:[/][/]/.test(url))
url = `https://${url}`
const {protocol, host} = imports.url.parse(url)
const result = {url:`${protocol}//${host}`, detailed, scores:[], metrics:{}}
const result = {url: `${protocol}//${host}`, detailed, scores: [], metrics: {}}
//Load scores from API
console.debug(`metrics/compute/${login}/plugins > pagespeed > querying api for ${result.url}`)
const scores = new Map()
@@ -53,6 +53,6 @@ export default async function({login, imports, data, q, account}, {enabled = fal
message = `API returned ${status}${description ? ` (${description})` : ""}`
error = error.response?.data ?? null
}
throw {error:{message, instance:error}}
throw {error: {message, instance: error}}
}
}