From 4a50b4206724737de79e9010e2429b6fe4359848 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 29 Jul 2023 20:36:04 +0200 Subject: [PATCH] Fix golangci-lint warning --- internal/services/i18n.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/i18n.go b/internal/services/i18n.go index e7c0fac..0b9c36f 100644 --- a/internal/services/i18n.go +++ b/internal/services/i18n.go @@ -71,6 +71,7 @@ func (m *MessageCatalog) LookupErrorMessage( localizer *i18n.Localizer, ) string { fieldTag := fmt.Sprintf("%s-%s", field, tag) + message, ok := m.messages[fieldTag] if !ok { m.logger.WithField("field_tag", fieldTag).Info("no specific error message for field and tag")