From e71b5a038ecfd80630c98752472c2719b0e9659f Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 22 Jan 2024 21:59:07 +0100 Subject: [PATCH] [GITEA] Fix typo in formatting error - The `c` isn't suposse to be there, it's not a formatter. (cherry picked from commit 94cac3b66f78e5f1ce59b72cd6b6e0cf47e721ef) (cherry picked from commit 07e05f262efe047969cc2be69a33f8081ee9e5b0) --- services/repository/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/branch.go b/services/repository/branch.go index 88a6d73d9..d7ac25b7c 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.go @@ -365,7 +365,7 @@ func DeleteBranch(ctx context.Context, doer *user_model.User, repo *repo_model.R rawBranch, err := git_model.GetBranch(ctx, repo.ID, branchName) if err != nil { - return fmt.Errorf("GetBranch: %vc", err) + return fmt.Errorf("GetBranch: %v", err) } objectFormat, err := gitRepo.GetObjectFormat()