log: keep code compact

This commit is contained in:
Zhao Li 2018-09-17 20:53:33 +08:00
parent 459cc8fb80
commit 7e30ab3e6b

View file

@ -402,8 +402,7 @@ func lazyEvaluateRecord(r *Record) {
// the values of any lazy fn to the result of its execution // the values of any lazy fn to the result of its execution
hadErr := false hadErr := false
for i := 1; i < len(r.Ctx); i += 2 { for i := 1; i < len(r.Ctx); i += 2 {
lz, ok := r.Ctx[i].(Lazy) if lz, ok := r.Ctx[i].(Lazy); ok {
if ok {
v, err := evaluateLazy(lz) v, err := evaluateLazy(lz)
if err != nil { if err != nil {
hadErr = true hadErr = true