Skip to content

Commit

Permalink
GrpcWebClientBase: clean up !useUnaryResponse callback args (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh authored Oct 26, 2022
1 parent e11903b commit 6577c66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/net/grpc/web/grpcwebclientbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ class GrpcWebClientBase {
code: StatusCode.UNKNOWN,
message: 'Incomplete response',
});
} else {
} else if (useUnaryResponse) {
callback(null, responseReceived, null, null, /* unaryResponseReceived= */ true);
} else {
callback(null, responseReceived);
}
}
if (useUnaryResponse) {
Expand Down

0 comments on commit 6577c66

Please sign in to comment.