backend: Enable gofmt in linter, fix all outstanding errors

This commit is contained in:
Kevin Lin 2024-01-27 17:30:26 -08:00
parent 858cdec2d5
commit 64f671b3bb
No known key found for this signature in database
GPG key ID: A8F9E05B9AB4D240
4 changed files with 15 additions and 14 deletions

View file

@ -50,6 +50,7 @@ linters:
- goconst
- gocritic
- gocyclo
- gofmt
- goprintffuncname
- gosimple
- govet

View file

@ -57,7 +57,7 @@ func (ctrl *V1Controller) HandleGroupUpdate() errchain.HandlerFunc {
ok := ctrl.svc.Currencies.IsSupported(body.Currency)
if !ok {
return repo.Group{}, validate.NewFieldErrors(
validate.NewFieldError("currency", "currency '" + body.Currency + "' is not supported"),
validate.NewFieldError("currency", "currency '"+body.Currency+"' is not supported"),
)
}