Strange wsl warning

prev, _ := heap.Pop()
for !heap.Empty() {

Running golangci-lint on htis code produces:
block should not start with a whitespace (wsl)
for !heap.Empty() { <-

Any idea what to do in order not to get this warning ?

The code doesn’t look close to what you have in the error message.

Also as the arrow points on an opening curly brace ({), is it perhaps some trailing whitespace in that line?