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:
parent
8942536a0b
commit
62be687147
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue