Skip to content

Commit 65cee75

Browse files
committed
Fixing ineffAssign insqs/util
1 parent c98a984 commit 65cee75

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/aws/sqs/util.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ func NewCreateQueueInput(queueName string) (*sqs.CreateQueueInput, error) {
1818
return nil, intError.Format(QueueName, ErrEmptyParameter)
1919
}
2020

21-
createQueueIn := new(sqs.CreateQueueInput)
22-
createQueueIn = createQueueIn.SetQueueName(queueName)
23-
2421
out := new(sqs.CreateQueueInput)
25-
out = createQueueIn
22+
out = out.SetQueueName(queueName)
2623

2724
return out, nil
2825

0 commit comments

Comments
 (0)