summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-09-19 04:44:49 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-19 19:44:49 +0800
commita1ed239bf277b0f17694e2e5685368d373e010c7 (patch)
tree237f991af549aeb90a36ac7f3ac28fae6fef89a1 /modules
parent23645fe05f16b44c1d430c165fd0c2839e518eee (diff)
downloadgitea-a1ed239bf277b0f17694e2e5685368d373e010c7.tar.gz
gitea-a1ed239bf277b0f17694e2e5685368d373e010c7.zip
Fix fmt errors (#2544)
Diffstat (limited to 'modules')
-rw-r--r--modules/context/repo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index acfccfcd05..519c3afc07 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -171,11 +171,12 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
)
ctx.Redirect(redirectPath)
}
+
// RepoIDAssignment returns an macaron handler which assigns the repo to the context.
func RepoIDAssignment() macaron.Handler {
return func(ctx *Context) {
var (
- err error
+ err error
)
repoID := ctx.ParamsInt64(":repoid")