Fix typo in visibilty error (#653)

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/653
Reviewed-by: John Olheiser <jolheiser@noreply.gitea.com>
Co-authored-by: rjhaverkamp <rjhaverkamp@noreply.gitea.com>
Co-committed-by: rjhaverkamp <rjhaverkamp@noreply.gitea.com>
This commit is contained in:
rjhaverkamp 2024-02-28 00:12:39 +00:00 committed by Martijn van der Kleijn
parent 8942536a0b
commit 62be687147

View file

@ -97,7 +97,7 @@ func (opt CreateOrgOption) Validate() error {
return fmt.Errorf("empty org name")
}
if len(opt.Visibility) != 0 && !checkVisibilityOpt(opt.Visibility) {
return fmt.Errorf("infalid bisibility option")
return fmt.Errorf("invalid visibility option")
}
return nil
}
@ -128,7 +128,7 @@ type EditOrgOption struct {
// Validate the EditOrgOption struct
func (opt EditOrgOption) Validate() error {
if len(opt.Visibility) != 0 && !checkVisibilityOpt(opt.Visibility) {
return fmt.Errorf("infalid bisibility option")
return fmt.Errorf("invalid visibility option")
}
return nil
}