summaryrefslogtreecommitdiff
path: root/watch.go
diff options
context:
space:
mode:
Diffstat (limited to 'watch.go')
-rw-r--r--watch.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/watch.go b/watch.go
index 711f7dd..afeead4 100644
--- a/watch.go
+++ b/watch.go
@@ -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 {