Skip to content

Commit

Permalink
include validation to avoid undefined.trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Dec 7, 2023
1 parent 8803011 commit 133c9bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class CertificateServiceClientCredentialsFactory extends ServiceClientCre
this.x5c = certificateThumbprintOrx5c;
} else {
ok(
certificateThumbprintOrx5c.trim(),
certificateThumbprintOrx5c?.trim(),
'CertificateServiceClientCredentialsFactory.constructor(): missing certificateThumbprint or x5c value.'
);
this.certificateThumbprint = certificateThumbprintOrx5c;
Expand Down

0 comments on commit 133c9bc

Please sign in to comment.