From ed19630a36bcd84e22f29e4f880531b98a3a3ffb Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Mon, 4 Nov 2024 16:47:34 -0800 Subject: [PATCH] Re-enable wastedassign linter --- .golangci.yml | 2 +- crl/updater/updater_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7e0aed4889f..c5d3e03c373 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,7 +12,7 @@ linters: - unconvert - unparam - unused - # TODO(#6202): Re-enable 'wastedassign' linter + - wastedassign linters-settings: errcheck: exclude-functions: diff --git a/crl/updater/updater_test.go b/crl/updater/updater_test.go index 9b2b1610869..8fe99ba2e96 100644 --- a/crl/updater/updater_test.go +++ b/crl/updater/updater_test.go @@ -396,6 +396,6 @@ func TestGetChunkAtTime(t *testing.T) { // the time twice, since the whole point of "very far in the future" is that // it isn't representable by a time.Duration. atTime = anchorTime().Add(200 * 365 * 24 * time.Hour).Add(200 * 365 * 24 * time.Hour) - c, err = GetChunkAtTime(shardWidth, numShards, atTime) + _, err = GetChunkAtTime(shardWidth, numShards, atTime) test.AssertError(t, err, "getting far-future chunk") }