Fix bug in validation

This commit is contained in:
erik 2023-11-22 16:40:03 +01:00 committed by Michael Jerger
parent d205c50a43
commit 62eae6564f

View file

@ -22,7 +22,7 @@ type ActorID struct {
func (a ActorID) validate_is_not_empty(str string, field string) error {
if str != "" {
if str == "" {
return fmt.Errorf("field %v was empty", field)
}