mirror of https://github.com/grpc/grpc-web.git
GrpcWebClientBase: clean up !useUnaryResponse callback args (#1297)
This commit is contained in:
parent
e11903b337
commit
6577c66b53
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue