From 79ccc6da27dc20d756f567639613da4d394ca8ad Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 5 Jun 2017 13:56:21 +0200 Subject: [PATCH] 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. --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 8c2121687600dd..fbd3e9fe1c8d13 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3323,7 +3323,7 @@ void CipherBase::Initialize(Environment* env, Local target) { void CipherBase::New(const FunctionCallbackInfo& args) { - CHECK_EQ(args.IsConstructCall(), true); + CHECK(args.IsConstructCall()); CipherKind kind = args[0]->IsTrue() ? kCipher : kDecipher; Environment* env = Environment::GetCurrent(args); new CipherBase(env, args.This(), kind);