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, localizer *i18n.Localizer,
) string { ) string {
fieldTag := fmt.Sprintf("%s-%s", field, tag) fieldTag := fmt.Sprintf("%s-%s", field, tag)
message, ok := m.messages[fieldTag] message, ok := m.messages[fieldTag]
if !ok { if !ok {
m.logger.WithField("field_tag", fieldTag).Info("no specific error message for field and tag") m.logger.WithField("field_tag", fieldTag).Info("no specific error message for field and tag")