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:
committed by
Andrey Nering
parent
6b878980dc
commit
be45eb04d9
5
watch.go
5
watch.go
@ -71,12 +71,9 @@ func (e *Executor) watchTasks(calls ...*Call) error {
|
||||
for {
|
||||
select {
|
||||
case event, ok := <-eventsChan:
|
||||
switch {
|
||||
case !ok:
|
||||
if !ok {
|
||||
cancel()
|
||||
return
|
||||
case event.Op == fsnotify.Chmod:
|
||||
continue
|
||||
}
|
||||
e.Logger.VerboseErrf(logger.Magenta, "task: received watch event: %v\n", event)
|
||||
|
||||
|
Reference in New Issue
Block a user