Skip to content

Commit dd158b0

Browse files
danbevaddaleax
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 ad07c46 commit dd158b0

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
@@ -3323,7 +3323,7 @@ void CipherBase::Initialize(Environment* env, Local<Object> target) {
33233323

33243324

33253325
void CipherBase::New(const FunctionCallbackInfo<Value>& args) {
3326-
CHECK_EQ(args.IsConstructCall(), true);
3326+
CHECK(args.IsConstructCall());
33273327
CipherKind kind = args[0]->IsTrue() ? kCipher : kDecipher;
33283328
Environment* env = Environment::GetCurrent(args);
33293329
new CipherBase(env, args.This(), kind);

0 commit comments

Comments
 (0)