This commit is contained in:
Fedor Korotkiy 2021-04-16 19:15:56 +03:00
parent b4aab678fa
commit 1c401ac21c

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