From ebc4df8bc1a49cce1bb26a9c3427ba7148b2bebf Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:30:04 +0800 Subject: [PATCH] chore: fix lint --- Makefile | 1 - auth/route.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 69e8933..e15c537 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,6 @@ venus-auth:show-env $(BUILD_DEPS) go build $(GOFLAGS) -o venus-auth ./cmd/server/*.go lint: - gofmt -s -w ./ golangci-lint run linux: clean diff --git a/auth/route.go b/auth/route.go index b3fed38..c8f53f0 100644 --- a/auth/route.go +++ b/auth/route.go @@ -14,7 +14,7 @@ func InitRouter(app OAuthApp) http.Handler { router := gin.New() router.Use(CorsMiddleWare()) - router.GET("/version", func (c *gin.Context){ + router.GET("/version", func(c *gin.Context) { type version struct { Version string }