diff --git a/src/locate/locate.js b/src/locate/locate.js index f1e72388f..9d872a5bf 100644 --- a/src/locate/locate.js +++ b/src/locate/locate.js @@ -67,7 +67,7 @@ export class Locate { this.tree = {}; this.walkQueue = this._createWalkQueue(); this.walkPromise = null; - this.parseQueue = async.queue((task, callback) => task().then(() => callback), SINGLE_FILE_PARSE_CONCURRENCY); + this.parseQueue = async.queue((task, callback) => task().then(() => callback()), SINGLE_FILE_PARSE_CONCURRENCY); } listInFile(absPath) { const waitForParse = (absPath in this.tree) ? Promise.resolve() : this.parse(absPath);