diff --git a/pkg/queue/bounded_queue_test.go b/pkg/queue/bounded_queue_test.go index 1c34b76b5cf..6308928ba66 100644 --- a/pkg/queue/bounded_queue_test.go +++ b/pkg/queue/bounded_queue_test.go @@ -118,9 +118,8 @@ func TestBoundedQueueWithPriority(t *testing.T) { GetPriority(func(item interface{}) int { if item.(string) == "a" { return highPriority - } else { - return lowPriority } + return lowPriority }), ) assert.Equal(t, 1, q.Capacity())