Skip to content

Commit 12ed861

Browse files
committed
fix lint
1 parent 0f3f798 commit 12ed861

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pkg/granted/registry/add_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/common-fate/granted/pkg/config"
87
"github.com/common-fate/granted/pkg/granted/registry/gitregistry"
98
"github.com/stretchr/testify/assert"
109
)
@@ -49,20 +48,13 @@ func TestRegistryWithRef(t *testing.T) {
4948

5049
for _, tt := range tests {
5150
t.Run(tt.name, func(t *testing.T) {
52-
// Create a test config
53-
cfg := &config.Config{
54-
ProfileRegistry: &config.ProfileRegistry{
55-
Registries: []config.Registry{},
56-
},
57-
}
58-
5951
// Create the registry
6052
registry, err := gitregistry.New(tt.registryOpts)
6153
assert.NoError(t, err)
6254

6355
// Try to get AWS profiles (this will trigger the clone/pull with ref)
6456
_, err = registry.AWSProfiles(context.Background(), false)
65-
57+
6658
if tt.wantErr {
6759
assert.Error(t, err)
6860
} else {

0 commit comments

Comments
 (0)