From 33a4194f4045592bfd6418539d65825d944cbc90 Mon Sep 17 00:00:00 2001 From: Tochemey Date: Mon, 23 Sep 2024 12:54:12 +0100 Subject: [PATCH] perf: performance tuning --- internal/collection/stack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collection/stack_test.go b/internal/collection/stack_test.go index 04ad47ab..8b31e404 100644 --- a/internal/collection/stack_test.go +++ b/internal/collection/stack_test.go @@ -33,7 +33,7 @@ import ( func TestStackPopEmpty(t *testing.T) { s := NewStack() - require.NotNil(t, s.Pop()) + require.Nil(t, s.Pop()) s.Push(1) s.Push(2) s.Push(3)