Skip to content

Commit bcc5214

Browse files
committed
archiver: tests: combine numQueued declaration with next-instruction assignment
1 parent 9fc8bed commit bcc5214

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/archiver/archiver_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ func waitForCount(t *testing.T, num int) {
4949
}
5050

5151
func releaseOneEntry(t *testing.T, inFlight []*ArchiveRequest) {
52-
var numQueued int
53-
54-
numQueued = len(archiveInProgress)
52+
numQueued := len(archiveInProgress)
5553

5654
// Release one, then WaitForCompletion. We'll get signalled when ready.
5755
// This works out to be quick and race-free, as we'll get signalled when the

0 commit comments

Comments
 (0)