From edf1e1ab49b7144a9dd5d1812177f927ec4dc9e3 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 6 Jul 2016 15:02:05 +0100 Subject: [PATCH] Initialize primaryResult to an array, not null --- services/document-updater/app/coffee/RedisBackend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/RedisBackend.coffee b/services/document-updater/app/coffee/RedisBackend.coffee index b33021689c..4861694570 100644 --- a/services/document-updater/app/coffee/RedisBackend.coffee +++ b/services/document-updater/app/coffee/RedisBackend.coffee @@ -124,7 +124,7 @@ for command, key_pos of COMMANDS do (command, key_pos) -> Client.prototype[command] = (args..., callback) -> primaryError = null - primaryResult = null + primaryResult = [] jobs = @clients.map (client) => (cb) => cb = _.once(cb)