diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-01-10 04:32:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:32:37 +0800 |
commit | 8c647bf0f6b19fe666c645ec16010d07bfe85a63 (patch) | |
tree | eaa322e1244591b00a36b7d79ce416bd1bd932af /models/repo.go | |
parent | 242dddfcb7cfab1d21c1658828d94f603809a5c7 (diff) | |
download | gitea-8c647bf0f6b19fe666c645ec16010d07bfe85a63.tar.gz gitea-8c647bf0f6b19fe666c645ec16010d07bfe85a63.zip |
Fix various typos (#18219)
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon`
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 1fc8bd207b..fcb2cae3f9 100644 --- a/models/repo.go +++ b/models/repo.go @@ -534,7 +534,7 @@ func CreateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_ if isAdmin, err := isUserRepoAdmin(db.GetEngine(ctx), repo, doer); err != nil { return fmt.Errorf("isUserRepoAdmin: %v", err) } else if !isAdmin { - // Make creator repo admin if it wan't assigned automatically + // Make creator repo admin if it wasn't assigned automatically if err = addCollaborator(ctx, repo, doer); err != nil { return fmt.Errorf("AddCollaborator: %v", err) } |