summaryrefslogtreecommitdiffstats
path: root/models/db
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-12-08 09:21:37 +0100
committerGitHub <noreply@github.com>2022-12-08 16:21:37 +0800
commit0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965 (patch)
tree4af0fa56e13f9a2008a7d34b2fc776c5373868af /models/db
parentcf27403e189f674d9a1e02cb71bc1ac13a5ba23d (diff)
downloadgitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.tar.gz
gitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.zip
Update go dev dependencies (#22064)
`golangci-lint` [deprecated](https://github.com/golangci/golangci-lint/issues/1841) a bunch of linters, removed them.
Diffstat (limited to 'models/db')
-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 fb95e94c93..c8ad0c1aa2 100644
--- a/models/db/context.go
+++ b/models/db/context.go
@@ -21,8 +21,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 {