Skip to content

Commit

Permalink
src: check return value, silence coverity warning
Browse files Browse the repository at this point in the history
PR-URL: #26997
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
bnoordhuis authored and danbev committed Apr 3, 2019
1 parent 4de5e0a commit 1087805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/handle_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ void HandleWrap::Close(Local<Value> close_callback) {
if (!close_callback.IsEmpty() && close_callback->IsFunction()) {
object()->Set(env()->context(),
env()->handle_onclose_symbol(),
close_callback)
.FromMaybe(false);
close_callback).Check();
}
}

Expand Down

0 comments on commit 1087805

Please sign in to comment.