mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-29 04:36:18 +01:00
Fix bug in validation
This commit is contained in:
parent
d205c50a43
commit
62eae6564f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue