diff options
Diffstat (limited to 'watch.go')
| -rw-r--r-- | watch.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -42,16 +42,10 @@ func Watch(path string, fn func(string) error) error { for { select { - case event, ok := <-watcher.Events: + case _, ok := <-watcher.Events: if !ok { return nil } - if event.Has(fsnotify.Remove) { - continue - } - if event.Has(fsnotify.Chmod) { - continue - } watcher.Remove(path) watcher.Add(path) if err := update(); err != nil { |