소스 검색

fix bug in doclines check

Brian Gough 9 년 전
부모
커밋
12e8eaa9b6
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/document-updater/app/coffee/RedisManager.coffee

+ 1 - 1
services/document-updater/app/coffee/RedisManager.coffee

@@ -115,7 +115,7 @@ module.exports = RedisManager =
 				return callback(new Errors.NotFoundError("document not found"))
 				return callback(new Errors.NotFoundError("document not found"))
 
 
 			# doc is not in redis, bail out
 			# doc is not in redis, bail out
-			if !lines?
+			if !docLines?
 				return callback null, docLines, version, ranges
 				return callback null, docLines, version, ranges
 
 
 			# doc should be in project set, check if missing (workaround for missing docs from putDoc)
 			# doc should be in project set, check if missing (workaround for missing docs from putDoc)