Skip to content

Commit e640600

Browse files
committed
fmt
1 parent 9a21fee commit e640600

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

coderd/files/cache_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ func TestCacheRBAC(t *testing.T) {
9090
require.NoError(t, err)
9191
require.Equal(t, 1, cache.Count())
9292

93-
_ = a.Close()
94-
_ = b.Close()
93+
a.Close()
94+
b.Close()
9595
require.Equal(t, 0, cache.Count())
9696

9797
rec.AssertActorID(t, nobodyID.String(), rec.Pair(policy.ActionRead, file))
@@ -179,7 +179,7 @@ func TestRelease(t *testing.T) {
179179
ids = append(ids, uuid.New())
180180
}
181181

182-
releases := make(map[uuid.UUID][]func() error, 0)
182+
releases := make(map[uuid.UUID][]func(), 0)
183183
// Acquire a bunch of references
184184
batchSize := 10
185185
for openedIdx, id := range ids {
@@ -208,7 +208,7 @@ func TestRelease(t *testing.T) {
208208
for closedIdx, id := range ids {
209209
stillOpen := len(ids) - closedIdx
210210
for closingIdx := range batchSize {
211-
_ = releases[id][0]()
211+
releases[id][0]()
212212
releases[id] = releases[id][1:]
213213

214214
// Each time a file is released, the metrics should decrement the file refs

0 commit comments

Comments
 (0)