aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-02-08 03:28:25 +0800
committerGitHub <noreply@github.com>2023-02-07 19:28:25 +0000
commitff2014690dc9a17b73836f9d8af5184aa0134770 (patch)
treefdd849247cf8dfb207bd334a692c12c4eef3d17a /models
parent03c644c48c511037d293bea6b4333338a932a0fc (diff)
downloadgitea-ff2014690dc9a17b73836f9d8af5184aa0134770.tar.gz
gitea-ff2014690dc9a17b73836f9d8af5184aa0134770.zip
upgrade golangcilint to v1.51.0 (#22764)
With the upgrade to go 1.20 golangci-lint no longer correctly works. We must therefore upgrade to the latest golangci-lint. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models')
-rw-r--r--models/db/context.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/db/context.go b/models/db/context.go
index 4fd35200cf..0d8d0a5bc4 100644
--- a/models/db/context.go
+++ b/models/db/context.go
@@ -24,8 +24,10 @@ type contextKey struct {
}
// enginedContextKey is a context key. It is used with context.Value() to get the current Engined for the context
-var enginedContextKey = &contextKey{"engined"}
-var _ Engined = &Context{}
+var (
+ enginedContextKey = &contextKey{"engined"}
+ _ Engined = &Context{}
+)
// Context represents a db context
type Context struct {