fix(ci): clear sam lint + golangci-lint findings

- template.yaml: drop redundant DependsOn (W3005) — Ref in LoggingConfig
  already implies BotFunctionLogGroup ordering.
- dynamodb_kv.go: remove unused errIsTableMissing and orphaned errors import.
- trading/prices.go: wrap deferred resp.Body.Close to satisfy errcheck.
This commit is contained in:
tiennm99 committed 2026-05-14 09:57:12 +07:00
1 parent 642fccb7b7
commit 2420fbbc36
3 files changed
+1 -10

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ func (c *PriceClient) FetchPrice(ctx context.Context, ticker string) (float64, e
if err != nil {
return 0, fmt.Errorf("trading: KBS request: %w", err)
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return 0, ErrNoPrice