Skip to content
Snippets Groups Projects
Commit 6d1a8449 authored by murgatroid99's avatar murgatroid99
Browse files

Coalesced redundant code

parent fe29b6de
No related branches found
No related tags found
No related merge requests found
...@@ -80,11 +80,7 @@ function _write(chunk, encoding, callback) { ...@@ -80,11 +80,7 @@ function _write(chunk, encoding, callback) {
var batch = {}; var batch = {};
batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk); batch[grpc.opType.SEND_MESSAGE] = this.serialize(chunk);
this.call.startBatch(batch, function(err, event) { this.call.startBatch(batch, function(err, event) {
if (err) { callback(err);
callback(err);
return;
}
callback();
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment