chore: enable fmt check #1742
|
@ -10,6 +10,7 @@ steps:
|
|||
commands:
|
||||
- make vet
|
||||
- make test
|
||||
- make fmt-check
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
|
|
|
@ -61,4 +61,4 @@ func TestEnableSessionId(t *testing.T) {
|
|||
assertSync(t, new(Userinfo))
|
||||
_, err := testEngine.Table("userinfo").MustLogSQL(true).Get(new(Userinfo))
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,3 @@ func SplitNNoCase(s, sep string, n int) []string {
|
|||
}
|
||||
return strings.SplitN(s, s[idx:idx+len(sep)], n)
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ func newSessionID() string {
|
|||
func newSession(engine *Engine) *Session {
|
||||
var ctx context.Context
|
||||
if engine.logSessionID {
|
||||
ctx = context.WithValue(engine.defaultContext, log.SessionIDKey, newSessionID())
|
||||
ctx = context.WithValue(engine.defaultContext, log.SessionIDKey, newSessionID())
|
||||
} else {
|
||||
ctx = engine.defaultContext
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user