1
0
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:
Teddy Sommavilla
2025-04-22 11:40:56 +02:00
committed by Andrey Nering
parent cd910abd45
commit 6b878980dc

View File

@ -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
}