aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/branch.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-02-23 21:16:07 +0100
committerGitHub <noreply@github.com>2022-02-23 20:16:07 +0000
commit2b9df564b858a9216ffb7881278f485b35946349 (patch)
tree0aaa76a02b580c1eab1cbebf54befa6e8deb5375 /routers/web/repo/branch.go
parent2b5e0134307a45581860029de99449e8be8f807e (diff)
downloadgitea-2b9df564b858a9216ffb7881278f485b35946349.tar.gz
gitea-2b9df564b858a9216ffb7881278f485b35946349.zip
Lock gofumpt to v0.3.0 and run it (#18866)
We can't depend on `latest` version of gofumpt because the output will not be stable across versions. Lock it down to the latest version released yesterday and run it again.
Diffstat (limited to 'routers/web/repo/branch.go')
-rw-r--r--routers/web/repo/branch.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go
index 5d19fd1185..489ef9a357 100644
--- a/routers/web/repo/branch.go
+++ b/routers/web/repo/branch.go
@@ -233,7 +233,8 @@ func loadBranches(ctx *context.Context, skip, limit int) (*Branch, []*Branch, in
func loadOneBranch(ctx *context.Context, rawBranch, defaultBranch *git.Branch, protectedBranches []*models.ProtectedBranch,
repoIDToRepo map[int64]*repo_model.Repository,
- repoIDToGitRepo map[int64]*git.Repository) *Branch {
+ repoIDToGitRepo map[int64]*git.Repository,
+) *Branch {
log.Trace("loadOneBranch: '%s'", rawBranch.Name)
commit, err := rawBranch.GetCommit()