From 4cd5b25eb0f04c9890250b5f8de19766007530d5 Mon Sep 17 00:00:00 2001 From: Shane McLaughlin Date: Thu, 30 Nov 2023 15:50:12 -0800 Subject: [PATCH] refactor: optional chaining --- src/shared/installationVerification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/installationVerification.ts b/src/shared/installationVerification.ts index 981edd19..17091ea2 100644 --- a/src/shared/installationVerification.ts +++ b/src/shared/installationVerification.ts @@ -469,7 +469,7 @@ export async function doInstallationCodeSigningVerification( verificationConfig.log(`Successfully validated digital signature for ${plugin.plugin}.`); } catch (err) { if (err instanceof Error) { - if (err.name === 'NotSigned' || err.message && err.message.includes('Response code 403')) { + if (err.name === 'NotSigned' || err.message?.includes('Response code 403')) { if (!verificationConfig.verifier) { throw new Error('VerificationConfig.verifier is not set.'); }