浏览代码

EAGLESIX-812: removed unnecessary/breaking code in getDependencies

Phil Murray 11 年之前
父节点
当前提交
465ccd6cbe
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      lib/pipeline/Pipeline.js

+ 0 - 3
lib/pipeline/Pipeline.js

@@ -531,9 +531,6 @@ proto.getDependencies = function getDependencies (initialQuery) {
     var deps = new DepsTracker(), 
 		knowAllFields = false;
 
-    if (this.sources == null || this.sources.length == 0)
-    	return new DepsTracker();
-
     //NOTE: Deviation from Mongo -- We aren't using Meta and textscore
     for (var i=0; i < this.sources.length && !knowAllFields; i++) {
         var localDeps = new DepsTracker(),