From eb134a2e27e06030a6a9bff6764c07852d0f3363 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 27 Nov 2021 13:17:03 +0100 Subject: [PATCH] Add linter ineffassign (#550) --- .golangci.yml | 1 + server/queue/fifo.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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)