From 6d1a8449d1f485d6d037b397a5df7ac42218c5e9 Mon Sep 17 00:00:00 2001
From: murgatroid99 <mlumish@google.com>
Date: Fri, 22 May 2015 10:29:05 -0700
Subject: [PATCH] Coalesced redundant code

---
 src/node/src/client.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/node/src/client.js b/src/node/src/client.js
index c9c0318b6d..9a50bf24d9 100644
--- a/src/node/src/client.js
+++ b/src/node/src/client.js
@@ -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);
   });
 }
 
-- 
GitLab