From 98486842aecfac4c0fcf35332dee583c78e183f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 29 Sep 2023 16:00:40 +0200 Subject: [PATCH] v0.0.275 fix missing returns in `(v MetaValue) ShortString` --- exerr/meta.go | 6 +++--- goextVersion.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exerr/meta.go b/exerr/meta.go index f2c6574..ea591d8 100644 --- a/exerr/meta.go +++ b/exerr/meta.go @@ -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), "<>")) } else { - evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<>"), *limitLen, "...")) + return evt.Str(key, langext.StrLimit(langext.CoalesceString(v.Value.(*string), "<>"), *limitLen, "...")) } case MDTInt: return evt.Int(key, v.Value.(int)) diff --git a/goextVersion.go b/goextVersion.go index f7406bf..755f3d3 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.274" +const GoextVersion = "0.0.275" -const GoextVersionTimestamp = "2023-09-27T16:18:21+0200" +const GoextVersionTimestamp = "2023-09-29T16:00:40+0200"