aboutsummaryrefslogtreecommitdiff
path: root/internal/route
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 17:55:17 +0800
committerGitHub <noreply@github.com>2022-03-06 17:55:17 +0800
commite452d94fc842da6623c8fde67b9d71a1ee739f0a (patch)
treee8e0c1c5206bed01f4634dc81ebcbf5af77f8d65 /internal/route
parent2466da4e82c3658cb9e05498961ad130e0467f0d (diff)
autofix: format code with gofumpt and gofmt (#6803)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/route')
-rw-r--r--internal/route/lfs/route.go1
-rw-r--r--internal/route/repo/pull.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/internal/route/lfs/route.go b/internal/route/lfs/route.go
index ff1bd591..0fd9617b 100644
--- a/internal/route/lfs/route.go
+++ b/internal/route/lfs/route.go
@@ -27,7 +27,6 @@ func RegisterRoutes(r *macaron.Router) {
r.Group("", func() {
r.Post("/objects/batch", authorize(db.AccessModeRead), verifyAccept, verifyContentTypeJSON, serveBatch)
r.Group("/objects/basic", func() {
-
basic := &basicHandler{
defaultStorage: lfsutil.Storage(conf.LFS.Storage),
storagers: map[lfsutil.Storage]lfsutil.Storager{
diff --git a/internal/route/repo/pull.go b/internal/route/repo/pull.go
index 88c452ab..68389532 100644
--- a/internal/route/repo/pull.go
+++ b/internal/route/repo/pull.go
@@ -553,7 +553,6 @@ func PrepareCompareDiff(
meta *gitutil.PullRequestMeta,
headBranch string,
) bool {
-
var (
repo = c.Repo.Repository
err error