diff --git a/services/document-updater/app/coffee/RedisBackend.coffee b/services/document-updater/app/coffee/RedisBackend.coffee index 649086ba09..f4c910a2df 100644 --- a/services/document-updater/app/coffee/RedisBackend.coffee +++ b/services/document-updater/app/coffee/RedisBackend.coffee @@ -167,10 +167,10 @@ for command, key_pos of COMMANDS compareResults = (results, command) -> return if results.length < 2 first = results[0] - if command == "smembers" + if command == "smembers" and first? first = first.slice().sort() for result in results.slice(1) - if command == "smembers" + if command == "smembers" and result? result = result.slice().sort() if not _.isEqual(first, result) logger.error results: results, "redis backend conflict"