Skip to content

Commit 79ccc6d

Browse files
committed
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.
1 parent b4da30f commit 79ccc6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
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)