Revert "Revert "Fix""

This reverts commit 288fa5b156.
This commit is contained in:
Fedor Korotkiy 2021-04-22 14:12:17 +03:00
parent 186e9e70b6
commit 28fa3585ce

View file

@ -93,14 +93,12 @@ func findChangedTasks(d Deadlines, files []string) []string {
_, task := d.FindTask(components[0]) _, task := d.FindTask(components[0])
if task != nil { if task != nil {
tasks[task.Name] = struct{}{} tasks[task.Name] = struct{}{}
continue
} }
for _, task := range d.Tasks() { for _, task := range d.Tasks() {
for _, path := range task.Watch { for _, path := range task.Watch {
if components[0] == path { if components[0] == path {
tasks[task.Name] = struct{}{} tasks[task.Name] = struct{}{}
continue
} }
} }
} }