crypto: simplify assertions in Safe*Print · nodejs/node@910533f · GitHub
Skip to content

Commit 910533f

Browse files
davidbenaduh95
authored andcommitted
crypto: simplify assertions in Safe*Print
Checking the X509V3_EXT_METHOD doesn't do anything. X509V3_EXT_get is already implemented by calling X509V3_EXT_get_nid on the extension's NID. We may as well just check the NID directly. PR-URL: #49709 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 27ffa35 commit 910533f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/crypto/crypto_common.cc

Lines changed: 2 additions & 4 deletions

0 commit comments

Comments
 (0)