Re-enable wastedassign linter (#7788)

Fixes https://github.com/letsencrypt/boulder/issues/6202
This commit is contained in:
Aaron Gable 2024-11-05 07:45:37 -08:00 committed by GitHub
parent 3b62e81999
commit 46fc4c25ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ linters:
- unconvert
- unparam
- unused
# TODO(#6202): Re-enable 'wastedassign' linter
- wastedassign
linters-settings:
errcheck:
exclude-functions:

View File

@ -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")
}