diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-01-02 18:41:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-01-02 18:41:47 +0800 |
commit | d2533d0efbb005a826f0950bbd1cb73a82fe90fc (patch) | |
tree | b49ba0918cb79d4e27cf1b6da048add63497f028 /vendor/github.com/rjeczalik/notify/watcher_fsevents.go | |
parent | 3e0113fff4b83c2d398f5d5041ef8b3052c19819 (diff) | |
download | dexon-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.go | 8 |
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 |