Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
  • Loading branch information
shtripat committed Dec 13, 2023
1 parent e8c5c00 commit a94817b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions quota-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (o *SetBucketQuotaOptions) getURLValues() url.Values {

// BucketThrottleRule holds a bucket throttle rule
type BucketThrottleRule struct {
ID string `json:id` // indicates unique id of rule
ID string `json:"id"` // indicates unique id of rule

Check failure on line 60 in quota-commands.go

View workflow job for this annotation

GitHub Actions / Lint checks Go 1.21.x

File is not `gofumpt`-ed (gofumpt)
ConcurrentRequestsCount uint64 `json:"concurrentRequestsCount"` // indicates no of concurrent requests
APIs []string `json:"apis"` // indicates list of APIs
}
Expand Down Expand Up @@ -103,9 +103,8 @@ func (q BucketQuota) HasDuplicateThrottleRules() (bool, string, string) {
for _, api := range rule.APIs {
if eRule, ok := rulesMap[strings.ToLower(api)]; ok {
return true, api, eRule.ID
} else {
rulesMap[strings.ToLower(api)] = rule
}
rulesMap[strings.ToLower(api)] = rule
}
}
return false, "", ""
Expand Down

0 comments on commit a94817b

Please sign in to comment.