Skip to content

Commit 8ff975a

Browse files
clean up if-condition
1 parent bbd60c8 commit 8ff975a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/mongocrypt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ Value MongoCrypt::MakeExplicitEncryptionContext(const CallbackInfo& info) {
562562

563563
Object options = info.Length() > 1 ? info[1].ToObject() : Object::New(info.Env());
564564

565-
if (!options.Has("expressionMode") || !options.Get("expressionMode").IsBoolean()) {
565+
if (!options.Get("expressionMode").IsBoolean()) {
566566
throw TypeError::New(Env(), "option `expressionMode` is required.");
567567
}
568568

0 commit comments

Comments
 (0)