aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rjeczalik/notify/watcher_fsevents.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-01-02 18:41:47 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-01-02 18:41:47 +0800
commitd2533d0efbb005a826f0950bbd1cb73a82fe90fc (patch)
treeb49ba0918cb79d4e27cf1b6da048add63497f028 /vendor/github.com/rjeczalik/notify/watcher_fsevents.go
parent3e0113fff4b83c2d398f5d5041ef8b3052c19819 (diff)
downloaddexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.gz
dexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.zst
dexon-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.zip
vendor: update github.com/rjeczalik/notify for go1.10 (#15785)
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/watcher_fsevents.go')
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_fsevents.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fsevents.go b/vendor/github.com/rjeczalik/notify/watcher_fsevents.go
index 9062c17c7..7d9b97b65 100644
--- a/vendor/github.com/rjeczalik/notify/watcher_fsevents.go
+++ b/vendor/github.com/rjeczalik/notify/watcher_fsevents.go
@@ -12,8 +12,6 @@ import (
"sync/atomic"
)
-// TODO(rjeczalik): get rid of calls to canonical, it's tree responsibility
-
const (
failure = uint32(FSEventsMustScanSubDirs | FSEventsUserDropped | FSEventsKernelDropped)
filter = uint32(FSEventsCreated | FSEventsRemoved | FSEventsRenamed |
@@ -189,9 +187,6 @@ func newWatcher(c chan<- EventInfo) watcher {
}
func (fse *fsevents) watch(path string, event Event, isrec int32) (err error) {
- if path, err = canonical(path); err != nil {
- return err
- }
if _, ok := fse.watches[path]; ok {
return errAlreadyWatched
}
@@ -211,9 +206,6 @@ func (fse *fsevents) watch(path string, event Event, isrec int32) (err error) {
}
func (fse *fsevents) unwatch(path string) (err error) {
- if path, err = canonical(path); err != nil {
- return
- }
w, ok := fse.watches[path]
if !ok {
return errNotWatched