diff options
Diffstat (limited to 'pkg/app/watcher.go')
| -rw-r--r-- | pkg/app/watcher.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/app/watcher.go b/pkg/app/watcher.go index 624e470..74db715 100644 --- a/pkg/app/watcher.go +++ b/pkg/app/watcher.go @@ -27,10 +27,10 @@ func startWatcher(a *App) { for { select { case e := <-a.Watcher.Events: - if e.Op&removeFlags > 0 { + if e.Op&removeFlags != 0 { removeEvents[e.Name] = struct{}{} } - if e.Op&addFlags > 0 { + if e.Op&addFlags != 0 { addEvents[e.Name] = struct{}{} } // reset timer |
