Coalesced redundant code

This commit is contained in:
murgatroid99 2015-05-22 10:29:05 -07:00
parent b08615e8bd
commit 2008d8b8ca
1 changed files with 1 additions and 5 deletions

View File

@ -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);
});
}