Conversation
Signed-off-by: knbr13 <[email protected]>
|
Interesting that we’re not getting this flagged by staticcheck in our golangci-lint runs as we definitely have sc enabled here |
That’s just the config equivalent of the cli flag to disable all the default linters and only enable explicitly defined ones |
|
Very strange, run via golangci-lint we get no results for staticcheck even if we disable all config and default excludes: But standalone staticcheck flags a few different things including S1009: |
|
the for reference: https://golangci-lint.run/usage/linters/#staticcheck |

mocks/async_producer.go remove unnecessay nil check.
because
len(slice)where slice == nil is always equal to 0,staticcheckwill highlight this optimization with the following message:for reference: staticcheck S1009