From 7ef419cdee564e92170a915a767dbb4ae099cc80 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 1 Feb 2026 09:10:19 +0100 Subject: [PATCH] fix all spellings --- services/repository/adopt.go | 2 +- services/repository/create.go | 2 +- services/repository/fork.go | 2 +- services/repository/template.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/repository/adopt.go b/services/repository/adopt.go index 167918b3cd..a9de68b33d 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.go @@ -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 may be canceled or timeout + // we can not use the ctx because it may be canceled or timed out if errDel := deleteFailedAdoptRepository(repo.ID); errDel != nil { log.Error("Failed to delete repository %s that could not be adopted: %v", repo.FullName(), errDel) } diff --git a/services/repository/create.go b/services/repository/create.go index 4091a2efb5..ca3faca97b 100644 --- a/services/repository/create.go +++ b/services/repository/create.go @@ -265,7 +265,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User, // WARNING: Don't override all later err with local variables defer func() { if err != nil { - // we can not use the ctx because it may be canceled or timeout + // we can not use the ctx because it may be canceled or timed out cleanupRepository(repo) } }() diff --git a/services/repository/fork.go b/services/repository/fork.go index cdf784cc92..77cfdbda36 100644 --- a/services/repository/fork.go +++ b/services/repository/fork.go @@ -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 may be canceled or timeout + // we can not use the ctx because it may be canceled or timed out cleanupRepository(repo) } }() diff --git a/services/repository/template.go b/services/repository/template.go index 10d68234fe..22e714d247 100644 --- a/services/repository/template.go +++ b/services/repository/template.go @@ -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 may be canceled or timeout + // we can not use the ctx because it may be canceled or timed out cleanupRepository(generateRepo) } }()