From 62be6871470cfa2220e92b5c31ed313cda71f34c Mon Sep 17 00:00:00 2001 From: rjhaverkamp Date: Wed, 28 Feb 2024 00:12:39 +0000 Subject: [PATCH] Fix typo in visibilty error (#653) Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/653 Reviewed-by: John Olheiser Co-authored-by: rjhaverkamp Co-committed-by: rjhaverkamp --- forgejo/org.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forgejo/org.go b/forgejo/org.go index 999fd02..e5e2a3a 100644 --- a/forgejo/org.go +++ b/forgejo/org.go @@ -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 }