From 0ad508c51ef93d268639e21b5501a7f7014367e9 Mon Sep 17 00:00:00 2001 From: Alena Lobanova <lobanova@perx.ru> Date: Wed, 12 Jul 2023 08:36:25 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- pkg/setup/collection_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/setup/collection_test.go b/pkg/setup/collection_test.go index d4541357..8461027d 100644 --- a/pkg/setup/collection_test.go +++ b/pkg/setup/collection_test.go @@ -182,11 +182,7 @@ func TestSetup_InstallCollections(t *testing.T) { } s := NewSetup(&content.Content{Collections: c, Environments: e}, "sp", "env", nil).WithForce(tt.force) - if tt.co != nil { - s.AddCollections(tt.collections, tt.co) - } else { - s.AddCollections(tt.collections) - } + s.AddCollections(tt.collections, tt.co) tt.wantErr(t, s.InstallCollections(context.Background())) }) } -- GitLab