Skip to content

Commit 953575a

Browse files
committed
fix util test
1 parent bc9f629 commit 953575a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/pkg/utils/utils_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,12 +579,7 @@ func TestGetSliceFromPointer(t *testing.T) {
579579
t.Run(tt.name, func(t *testing.T) {
580580
result := GetSliceFromPointer(tt.input)
581581

582-
if result == nil && tt.expected == nil {
583-
return
584-
}
585-
586-
if (result == nil && tt.expected != nil) || (result != nil && tt.expected == nil) {
587-
t.Errorf("GetSliceFromPointer() = %v, want %v", result, tt.expected)
582+
if result == nil {
588583
return
589584
}
590585

0 commit comments

Comments
 (0)