Skip to content

Commit 1c94ed3

Browse files
committed
refactor resource type
1 parent a815ecc commit 1c94ed3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkg/connector/connector.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,10 @@ var (
5353
Id: "api-key",
5454
DisplayName: "API Key",
5555
Traits: []v2.ResourceType_Trait{v2.ResourceType_TRAIT_SECRET},
56-
Annotations: annotationsForResourceType(true),
56+
Annotations: annotations.New(&v2.SkipEntitlementsAndGrants{}),
5757
}
5858
)
5959

60-
func annotationsForResourceType(skipEntitlementsAndGrants bool) annotations.Annotations {
61-
annos := annotations.Annotations{}
62-
63-
if skipEntitlementsAndGrants {
64-
annos.Update(&v2.SkipEntitlementsAndGrants{})
65-
}
66-
67-
return annos
68-
}
69-
7060
type GitHub struct {
7161
orgs []string
7262
client *github.Client

0 commit comments

Comments
 (0)