1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

refactor: watchTasks - Chmod operations are already filtered in the Deduper

This commit is contained in:
Teddy Sommavilla
2025-04-22 11:42:28 +02:00
committed by Andrey Nering
parent 6b878980dc
commit be45eb04d9

View File

@ -71,12 +71,9 @@ func (e *Executor) watchTasks(calls ...*Call) error {
for { for {
select { select {
case event, ok := <-eventsChan: case event, ok := <-eventsChan:
switch { if !ok {
case !ok:
cancel() cancel()
return return
case event.Op == fsnotify.Chmod:
continue
} }
e.Logger.VerboseErrf(logger.Magenta, "task: received watch event: %v\n", event) e.Logger.VerboseErrf(logger.Magenta, "task: received watch event: %v\n", event)