Skip to content

Commit

Permalink
refactor: optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored Nov 30, 2023
1 parent 3414d56 commit 4cd5b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/installationVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 4cd5b25

Please sign in to comment.