Skip to content

Commit

Permalink
quic: use Check instead of FromJust in QuicStream
Browse files Browse the repository at this point in the history
This commit uses Maybe::Check() instead of Maybe::FromJust() as the
return value is not used.

PR-URL: #33909
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
danbev authored and jasnell committed Jun 17, 2020
1 parent 133a97f commit 4b70f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quic/node_quic_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void QuicStream::Initialize(
env->set_quicserverstream_instance_template(streamt);
target->Set(env->context(),
class_name,
stream->GetFunction(env->context()).ToLocalChecked()).FromJust();
stream->GetFunction(env->context()).ToLocalChecked()).Check();

env->SetMethod(target, "openBidirectionalStream", OpenBidirectionalStream);
env->SetMethod(target, "openUnidirectionalStream", OpenUnidirectionalStream);
Expand Down

0 comments on commit 4b70f95

Please sign in to comment.