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 <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
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

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