Commit 552a4b99 authored by erio's avatar erio
Browse files

fix: resolve golangci-lint issues (gofmt, errcheck)

- Fix gofmt alignment in admin_service.go and trailing newline in
  antigravity_credits_overages.go
- Suppress errcheck for fmt.Sscanf in client.go GetMinimumAmount
parent 0d2061b2
...@@ -172,7 +172,7 @@ func (c *AvailableCredit) GetAmount() float64 { ...@@ -172,7 +172,7 @@ func (c *AvailableCredit) GetAmount() float64 {
return 0 return 0
} }
var value float64 var value float64
fmt.Sscanf(c.CreditAmount, "%f", &value) _, _ = fmt.Sscanf(c.CreditAmount, "%f", &value)
return value return value
} }
...@@ -182,7 +182,7 @@ func (c *AvailableCredit) GetMinimumAmount() float64 { ...@@ -182,7 +182,7 @@ func (c *AvailableCredit) GetMinimumAmount() float64 {
return 0 return 0
} }
var value float64 var value float64
fmt.Sscanf(c.MinimumCreditAmountForUsage, "%f", &value) _, _ = fmt.Sscanf(c.MinimumCreditAmountForUsage, "%f", &value)
return value return value
} }
......
...@@ -232,4 +232,3 @@ func (s *AntigravityGatewayService) handleCreditsRetryFailure( ...@@ -232,4 +232,3 @@ func (s *AntigravityGatewayService) handleCreditsRetryFailure(
prefix, modelKey, account.ID, creditsStatusCode, reqErr, truncateForLog(creditsRespBody, 200)) prefix, modelKey, account.ID, creditsStatusCode, reqErr, truncateForLog(creditsRespBody, 200))
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment