chore: enable fmt check

This commit is contained in:
Bo-Yi Wu 2020-07-20 19:23:01 +08:00
parent 318102c9ff
commit 28937fbd0c
4 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,7 @@ steps:
commands: commands:
- make vet - make vet
- make test - make test
- make fmt-check
when: when:
event: event:
- push - push

View File

@ -27,4 +27,3 @@ func SplitNNoCase(s, sep string, n int) []string {
} }
return strings.SplitN(s, s[idx:idx+len(sep)], n) return strings.SplitN(s, s[idx:idx+len(sep)], n)
} }

View File

@ -102,7 +102,7 @@ func newSessionID() string {
func newSession(engine *Engine) *Session { func newSession(engine *Engine) *Session {
var ctx context.Context var ctx context.Context
if engine.logSessionID { if engine.logSessionID {
ctx = context.WithValue(engine.defaultContext, log.SessionIDKey, newSessionID()) ctx = context.WithValue(engine.defaultContext, log.SessionIDKey, newSessionID())
} else { } else {
ctx = engine.defaultContext ctx = engine.defaultContext
} }