Skip to content

Commit 69143ff

Browse files
danbevMylesBorins
authored andcommitted
src: make IsConstructCall checks consistent
The most common way to perfom this check is by using the simple CHECK macro. This commit suggest making this consistent in favour of the most commonly used. PR-URL: #13473 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 17da29c commit 69143ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3313,7 +3313,7 @@ void CipherBase::Initialize(Environment* env, Local<Object> target) {
33133313

33143314

33153315
void CipherBase::New(const FunctionCallbackInfo<Value>& args) {
3316-
CHECK_EQ(args.IsConstructCall(), true);
3316+
CHECK(args.IsConstructCall());
33173317
CipherKind kind = args[0]->IsTrue() ? kCipher : kDecipher;
33183318
Environment* env = Environment::GetCurrent(args);
33193319
new CipherBase(env, args.This(), kind);

0 commit comments

Comments
 (0)