From a63bea1f59c347aa15514de626d637b13ad19698 Mon Sep 17 00:00:00 2001
From: ansuz <ansuz@transitiontech.ca>
Date: Thu, 22 Aug 2019 11:50:06 +0200
Subject: [PATCH] remove invalid callback which would totally break
 channelBytes

---
 storage/file.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/storage/file.js b/storage/file.js
index 75dabf5b7..ab25b0963 100644
--- a/storage/file.js
+++ b/storage/file.js
@@ -603,7 +603,7 @@ var flushUnusedChannels = function (env, cb, frame) {
 };
 
 /*  channelBytes
-    calls back with the size (in bytes) of a channel and its metadata
+    calls back with an error or the size (in bytes) of a channel and its metadata
 */
 var channelBytes = function (env, chanName, cb) {
     var channelPath = mkPath(env, chanName);
@@ -627,7 +627,6 @@ var channelBytes = function (env, chanName, cb) {
                 return void CB(err);
             }
             dataSize = stats.size;
-            CB(undefined, stats.size);
         }));
     }).nThen(function () {
         CB(void 0, channelSize + dataSize);