Skip to content

Commit 7536322

Browse files
author
Christopher Haar
authored
Merge pull request #1694 from haooliveira84/fix-sqs-lint
fix(sqs): adjust lint; remove unnecessary conversion
2 parents 04858ec + eb79747 commit 7536322

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apis/sqs/v1beta1/queue_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ type QueueParameters struct {
176176
// +optional
177177
ContentBasedDeduplication *bool `json:"contentBasedDeduplication,omitempty"`
178178

179-
//Boolean to enable server-side encryption (SSE) of
180-
//message content with SQS-owned encryption keys. See Encryption at rest.
179+
// Boolean to enable server-side encryption (SSE) of
180+
// message content with SQS-owned encryption keys. See Encryption at rest.
181181
SqsManagedSseEnabled *bool `json:"sseEnabled,omitempty"`
182182

183183
// Tags add cost allocation tags to the specified Amazon SQS queue.

pkg/clients/sqs/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func LateInitialize(in *v1beta1.QueueParameters, attributes map[string]string, t
171171
in.VisibilityTimeout = awsclients.LateInitializeInt64Ptr(in.VisibilityTimeout, int64Ptr(attributes[v1beta1.AttributeVisibilityTimeout]))
172172

173173
in.SqsManagedSseEnabled = nil
174-
SqsManagedSseEnabled, err := strconv.ParseBool(attributes[string(attributes[v1beta1.AttributeSqsManagedSseEnabled])])
174+
SqsManagedSseEnabled, err := strconv.ParseBool(attributes[v1beta1.AttributeSqsManagedSseEnabled])
175175
if err == nil && SqsManagedSseEnabled {
176176
in.SqsManagedSseEnabled = awsclients.LateInitializeBoolPtr(in.SqsManagedSseEnabled, aws.Bool(SqsManagedSseEnabled))
177177
}

0 commit comments

Comments
 (0)