summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-kv/format/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/format/format.go')
-rw-r--r--vendor/codeberg.org/gruf/go-kv/format/format.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/format/format.go b/vendor/codeberg.org/gruf/go-kv/format/format.go
index 5027c7c06..cd0b574ea 100644
--- a/vendor/codeberg.org/gruf/go-kv/format/format.go
+++ b/vendor/codeberg.org/gruf/go-kv/format/format.go
@@ -197,7 +197,8 @@ func (f format) AppendBytes(b []byte) {
// Quoted only if spaces/requires escaping
case f.Key():
- f.AppendStringSafe(b2s(b))
+ s := byteutil.B2S(b)
+ f.AppendStringSafe(s)
// Append as separate ASCII quoted bytes in slice
case f.Verbose():
@@ -214,7 +215,8 @@ func (f format) AppendBytes(b []byte) {
// Quoted only if spaces/requires escaping
case f.Value():
- f.AppendStringSafe(b2s(b))
+ s := byteutil.B2S(b)
+ f.AppendStringSafe(s)
// Append as raw bytes
default: