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_fen.go | |
parent | 3e0113fff4b83c2d398f5d5041ef8b3052c19819 (diff) | |
download | go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.gz go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.bz2 go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.lz go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.xz go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.tar.zst go-tangerine-d2533d0efbb005a826f0950bbd1cb73a82fe90fc.zip |
vendor: update github.com/rjeczalik/notify for go1.10 (#15785)
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/watcher_fen.go')
-rw-r--r-- | vendor/github.com/rjeczalik/notify/watcher_fen.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/vendor/github.com/rjeczalik/notify/watcher_fen.go b/vendor/github.com/rjeczalik/notify/watcher_fen.go index dd069f2a2..dfe77f2f1 100644 --- a/vendor/github.com/rjeczalik/notify/watcher_fen.go +++ b/vendor/github.com/rjeczalik/notify/watcher_fen.go @@ -33,14 +33,7 @@ type fen struct { // watched is a data structure representing watched file/directory. type watched struct { - // p is a path to watched file/directory - p string - // fi provides information about watched file/dir - fi os.FileInfo - // eDir represents events watched directly - eDir Event - // eNonDir represents events watched indirectly - eNonDir Event + trgWatched } // Stop implements trigger. @@ -55,7 +48,7 @@ func (f *fen) Close() (err error) { // NewWatched implements trigger. func (*fen) NewWatched(p string, fi os.FileInfo) (*watched, error) { - return &watched{p: p, fi: fi}, nil + return &watched{trgWatched{p: p, fi: fi}}, nil } // Record implements trigger. |