Initialize primaryResult to an array, not null

This commit is contained in:
James Allen 2016-07-06 15:02:05 +01:00
parent 59883023ca
commit edf1e1ab49

View file

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