chore: code formatting

This commit is contained in:
github-actions[bot]
2022-03-10 01:19:06 +00:00
parent 60857e1480
commit 1f0f85582b

View File

@@ -48,7 +48,7 @@ export default async function({login, imports, data, q, account}, {enabled = fal
if (error.isAxiosError) { if (error.isAxiosError) {
const status = error.response?.status const status = error.response?.status
let description = error.response?.data?.error?.message?.match(/Lighthouse returned error: (?<description>[A-Z_]+)/)?.groups?.description ?? null let description = error.response?.data?.error?.message?.match(/Lighthouse returned error: (?<description>[A-Z_]+)/)?.groups?.description ?? null
if ((status === 429)&&(!description)) if ((status === 429) && (!description))
description = 'consider using "plugin_pagespeed_token"' description = 'consider using "plugin_pagespeed_token"'
message = `API returned ${status}${description ? ` (${description})` : ""}` message = `API returned ${status}${description ? ` (${description})` : ""}`
error = error.response?.data ?? null error = error.response?.data ?? null