v0.0.275 fix missing returns in (v MetaValue) ShortString
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 54s

This commit is contained in:
2023-09-29 16:00:40 +02:00
parent 7577a2dd47
commit 98486842ae
2 changed files with 5 additions and 5 deletions

View File

@@ -223,7 +223,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
if limitLen == nil {
return evt.Str(key, v.Value.(string))
} else {
evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
return evt.Str(key, langext.StrLimit(v.Value.(string), *limitLen, "..."))
}
case MDTID:
return evt.Str(key, v.Value.(IDWrap).Value)
@@ -234,7 +234,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
if limitLen == nil {
return evt.Str(key, v.Value.(AnyWrap).Json)
} else {
evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
return evt.Str(key, langext.StrLimit(v.Value.(AnyWrap).Json, *limitLen, "..."))
}
}
case MDTStringPtr:
@@ -244,7 +244,7 @@ func (v MetaValue) Apply(key string, evt *zerolog.Event, limitLen *int) *zerolog
if limitLen == nil {
return evt.Str(key, langext.CoalesceString(v.Value.(*string), "<<null>>"))
} else {
evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<<null>>"), *limitLen, "..."))
return evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<<null>>"), *limitLen, "..."))
}
case MDTInt:
return evt.Int(key, v.Value.(int))