Skip to content

Commit

Permalink
fixup! Subscriptions: Add batching to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jul 12, 2024
1 parent cf79587 commit 20d0fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/subscription/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func expandTemplate(e iExchange, s *Subscription, ap assetPairs, assets asset.It
}

buf := &bytes.Buffer{}
if err := t.Execute(buf, subCtx); err != nil {
if err = t.Execute(buf, subCtx); err != nil {

Check failure on line 126 in exchanges/subscription/template.go

View workflow job for this annotation

GitHub Actions / lint

sloppyReassign: re-assignment to `err` can be replaced with `err := t.Execute(buf, subCtx)` (gocritic)
return nil, err
}

Expand Down

0 comments on commit 20d0fe1

Please sign in to comment.