There's no modifyEvent there

This commit is contained in:
Ash Wilson
2018-02-27 17:16:08 -05:00
parent f7f6564b7d
commit 4c8f1fe3ad

View File

@@ -505,9 +505,9 @@ class PathWatcher {
if (srcWatched && destWatched) {
filtered.push(modifyEvent(event))
} else if (srcWatched && !destWatched) {
filtered.push({action: 'deleted', kind: event.kind, path: modifyPath(event.oldPath)})
filtered.push({action: 'deleted', kind: event.kind, path: event.oldPath})
} else if (!srcWatched && destWatched) {
filtered.push({action: 'created', kind: event.kind, path: modifyPath(event.path)})
filtered.push({action: 'created', kind: event.kind, path: event.path})
}
} else {
if (isWatched(event.path)) {