瀏覽代碼

Return when calling callback

James Allen 13 年之前
父節點
當前提交
7a3b78da43
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/track-changes/app/coffee/ConversionManager.coffee

+ 1 - 1
services/track-changes/app/coffee/ConversionManager.coffee

@@ -61,7 +61,7 @@ module.exports = ConversionManager =
 
 
 				if !lastCompressedUpdate?
 				if !lastCompressedUpdate?
 					# No saved versions, no raw updates, nothing to do
 					# No saved versions, no raw updates, nothing to do
-					callback()
+					return callback()
 
 
 				compressedUpdates = [lastCompressedUpdate]
 				compressedUpdates = [lastCompressedUpdate]
 				for rawUpdate in rawUpdates
 				for rawUpdate in rawUpdates