Skip to content

Commit

Permalink
OCM-3963 | feat: removing unecessary pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
den-rgb committed Dec 20, 2023
1 parent 2bb7985 commit 2f5165c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/aws/validations/iam_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func HasCompatibleVersionTags(iamTags []*iamtypes.Tag, version string) (bool, er
return false, nil
}

func IamResourceHasTag(iamTags []*iamtypes.Tag, tagKey string, tagValue string) bool {
func IamResourceHasTag(iamTags []iamtypes.Tag, tagKey string, tagValue string) bool {
for _, tag := range iamTags {
if aws.ToString(tag.Key) == tagKey && aws.ToString(tag.Value) == tagValue {
return true
Expand Down
4 changes: 2 additions & 2 deletions pkg/aws/validations/iam_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var _ = Describe("AWS iamtypes Functions", func() {

var _ = Describe("iamtypesResourceHasTag", func() {
It("should return true if the tag with the specified key and value exists", func() {
iamtypesTags := []*iamtypes.Tag{
iamtypesTags := []iamtypes.Tag{
{Key: aws.String("Tag1"), Value: aws.String("Value1")},
{Key: aws.String("Tag2"), Value: aws.String("Value2")},
}
Expand All @@ -129,7 +129,7 @@ var _ = Describe("AWS iamtypes Functions", func() {
})

It("should return false if the tag with the specified key and value does not exist", func() {
iamtypesTags := []*iamtypes.Tag{
iamtypesTags := []iamtypes.Tag{
{Key: aws.String("Tag1"), Value: aws.String("Value1")},
{Key: aws.String("Tag2"), Value: aws.String("Value2")},
}
Expand Down

0 comments on commit 2f5165c

Please sign in to comment.