Skip to content

Commit c956a77

Browse files
committed
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
1 parent 93db2d6 commit c956a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fsnotifyext/fsnotify_dedup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (d *Deduper) GetChan() <-chan fsnotify.Event {
3232
switch {
3333
case !ok:
3434
return
35-
case event.Op == fsnotify.Chmod:
35+
case event.Has(fsnotify.Chmod):
3636
continue
3737
}
3838

0 commit comments

Comments
 (0)