Fix golangci-lint warning

This commit is contained in:
Jan Dittberner 2023-07-29 20:36:04 +02:00
parent 4339baee85
commit 4a50b42067

View file

@ -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")