Просмотр исходного кода

Initialize primaryResult to an array, not null

James Allen 10 лет назад
Родитель
Сommit
edf1e1ab49
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/document-updater/app/coffee/RedisBackend.coffee

+ 1 - 1
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)