aboutsummaryrefslogtreecommitdiffstats
path: root/models/db/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/context.go')
-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 {