Преглед изворни кода

add missing callback in compressAndSaveRawUpdates

Brian Gough пре 11 година
родитељ
комит
add6a68fe1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      services/track-changes/app/coffee/UpdatesManager.coffee

+ 2 - 1
services/track-changes/app/coffee/UpdatesManager.coffee

@@ -42,7 +42,8 @@ module.exports = UpdatesManager =
 					if lastCompressedUpdate?
 						MongoManager.insertCompressedUpdates project_id, doc_id, [lastCompressedUpdate], temporary, () ->
 							return callback error
-					return
+					else
+						return callback error
 
 			compressedUpdates = UpdateCompressor.compressRawUpdates lastCompressedUpdate, rawUpdates