From e452d94fc842da6623c8fde67b9d71a1ee739f0a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Mar 2022 17:55:17 +0800 Subject: autofix: format code with gofumpt and gofmt (#6803) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/route/lfs/route.go | 1 - internal/route/repo/pull.go | 1 - 2 files changed, 2 deletions(-) (limited to 'internal/route') 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 -- cgit v1.2.3