mirror of https://github.com/grpc/grpc-node.git
Coalesced redundant code
This commit is contained in:
parent
b08615e8bd
commit
2008d8b8ca
|
@ -80,11 +80,7 @@ function _write(chunk, encoding, callback) {
|
|||
var batch = {};
|
||||
batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk);
|
||||
this.call.startBatch(batch, function(err, event) {
|
||||
if (err) {
|
||||
callback(err);
|
||||
return;
|
||||
}
|
||||
callback();
|
||||
callback(err);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue