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.'); }