Skip to content

Commit b55b118

Browse files
Dai.OtsukakojisaikiAtSony
Dai.Otsuka
authored andcommitted
fixed
1 parent b7de554 commit b55b118

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/models/requests.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import (
1313
log "github.com/sirupsen/logrus"
1414
)
1515

16-
var caser = cases.Title(language.AmericanEnglish)
17-
1816
type CreateQueueRequest struct {
1917
QueueName string `json:"QueueName" schema:"QueueName"`
2018
Attributes QueueAttributes `json:"Attributes" schema:"Attribute"`
@@ -766,7 +764,7 @@ func (r *PublishRequest) SetAttributesFromForm(values url.Values) {
766764
r.MessageAttributes = make(map[string]MessageAttribute)
767765
}
768766
attributes[name] = MessageAttribute{
769-
DataType: caser.String(dataType), // capitalize
767+
DataType: cases.Title(language.AmericanEnglish).String(dataType), // capitalize
770768
StringValue: stringValue,
771769
BinaryValue: []byte(binaryValue),
772770
}

0 commit comments

Comments
 (0)