0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 04:55:34 +02:00

fix all spellings

This commit is contained in:
silverwind 2026-02-01 09:09:53 +01:00
parent c1f84120fc
commit 574f504a1d
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ func AdoptRepository(ctx context.Context, doer, owner *user_model.User, opts Cre
// WARNING: Don't override all later err with local variables
defer func() {
if err != nil {
// we can not use the ctx because it maybe canceled or timeout
// we can not use the ctx because it may be canceled or timeout
if errDel := deleteFailedAdoptRepository(repo.ID); errDel != nil {
log.Error("Failed to delete repository %s that could not be adopted: %v", repo.FullName(), errDel)
}

View File

@ -123,7 +123,7 @@ func ForkRepository(ctx context.Context, doer, owner *user_model.User, opts Fork
// WARNING: Don't override all later err with local variables
defer func() {
if err != nil {
// we can not use the ctx because it maybe canceled or timeout
// we can not use the ctx because it may be canceled or timeout
cleanupRepository(repo)
}
}()

View File

@ -100,7 +100,7 @@ func GenerateRepository(ctx context.Context, doer, owner *user_model.User, templ
// last - clean up the repository if something goes wrong
defer func() {
if err != nil {
// we can not use the ctx because it maybe canceled or timeout
// we can not use the ctx because it may be canceled or timeout
cleanupRepository(generateRepo)
}
}()