Skip to content

Commit

Permalink
clean up if-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jul 30, 2024
1 parent bbd60c8 commit 8ff975a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mongocrypt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ Value MongoCrypt::MakeExplicitEncryptionContext(const CallbackInfo& info) {

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

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

Expand Down

0 comments on commit 8ff975a

Please sign in to comment.