chore: code formatting
This commit is contained in:
@@ -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}}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user