Skip to content

Commit 46fc4c2

Browse files
authored
Re-enable wastedassign linter (#7788)
Fixes #6202
1 parent 3b62e81 commit 46fc4c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ linters:
1212
- unconvert
1313
- unparam
1414
- unused
15-
# TODO(#6202): Re-enable 'wastedassign' linter
15+
- wastedassign
1616
linters-settings:
1717
errcheck:
1818
exclude-functions:

crl/updater/updater_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ func TestGetChunkAtTime(t *testing.T) {
396396
// the time twice, since the whole point of "very far in the future" is that
397397
// it isn't representable by a time.Duration.
398398
atTime = anchorTime().Add(200 * 365 * 24 * time.Hour).Add(200 * 365 * 24 * time.Hour)
399-
c, err = GetChunkAtTime(shardWidth, numShards, atTime)
399+
_, err = GetChunkAtTime(shardWidth, numShards, atTime)
400400
test.AssertError(t, err, "getting far-future chunk")
401401
}

0 commit comments

Comments
 (0)