From 1f0f85582b34319693914ae9459772674242bca7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 01:19:06 +0000 Subject: [PATCH] chore: code formatting --- source/plugins/pagespeed/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/pagespeed/index.mjs b/source/plugins/pagespeed/index.mjs index 83d16f40..57f1bf24 100644 --- a/source/plugins/pagespeed/index.mjs +++ b/source/plugins/pagespeed/index.mjs @@ -48,7 +48,7 @@ export default async function({login, imports, data, q, account}, {enabled = fal if (error.isAxiosError) { const status = error.response?.status let description = error.response?.data?.error?.message?.match(/Lighthouse returned error: (?[A-Z_]+)/)?.groups?.description ?? null - if ((status === 429)&&(!description)) + if ((status === 429) && (!description)) description = 'consider using "plugin_pagespeed_token"' message = `API returned ${status}${description ? ` (${description})` : ""}` error = error.response?.data ?? null