Skip to content

Commit

Permalink
fix: use _cachePathsForDirectoryWithGlob directly in onAddDir
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 27, 2021
1 parent 5b07a1d commit 4f3e4a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/paths-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ export default class PathsCache extends EventEmitter {
* @param addedDir {string}
*/
async onAddDir(projectDirectory, addedDir) {
const directory = new Directory(addedDir)
await this._cachePathsForDirectory(projectDirectory, directory)
await this._cachePathsForDirectoryWithGlob(addedDir)
}

/**
Expand Down

0 comments on commit 4f3e4a1

Please sign in to comment.