diff --git a/.golangci.yml b/.golangci.yml index 8971c2976..75f4c7f59 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -20,6 +20,7 @@ linters: - staticcheck - structcheck - varcheck + - ineffassign run: timeout: 5m diff --git a/server/queue/fifo.go b/server/queue/fifo.go index c080c51f2..0bab454f6 100644 --- a/server/queue/fifo.go +++ b/server/queue/fifo.go @@ -356,7 +356,6 @@ func (q *fifo) updateDepStatusInQueue(taskID string, status string) { } } - next = nil for e := q.waitingOnDeps.Front(); e != nil; e = next { next = e.Next() waiting, ok := e.Value.(*Task)