Skip to content

Commit

Permalink
fix: fix no case declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 2, 2021
1 parent aa5478e commit 0ccf198
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/paths-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,20 @@ export default class PathsCache extends EventEmitter {
files.push(path)
break

case "deleted":
case "deleted": {
const i = files.indexOf(path)
if (i > -1) {
files.splice(i, 1)
}
break

case "renamed":
}
case "renamed": {
const j = files.indexOf(oldPath)
if (j > -1) {
files[j] = path
}
break
}
}

if (!this._filePathsByProjectDirectory.has(directoryPath)) {
Expand Down

0 comments on commit 0ccf198

Please sign in to comment.