mirror of
https://github.com/go-task/task.git
synced 2025-08-08 22:36:57 +02:00
refactor(fsnotifyext): use Event.Has to check for chmod operations
As recommended by the Event.Op godoc. Op is a bitmask, and some systems may send multiple operations at once
This commit is contained in:
committed by
Andrey Nering
parent
cd910abd45
commit
6b878980dc
@ -32,7 +32,7 @@ func (d *Deduper) GetChan() <-chan fsnotify.Event {
|
||||
switch {
|
||||
case !ok:
|
||||
return
|
||||
case event.Op == fsnotify.Chmod:
|
||||
case event.Has(fsnotify.Chmod):
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user