diff --git a/internal/xstring/convert.go b/internal/xstring/convert.go index eb7ee4b05..6d1e6546b 100644 --- a/internal/xstring/convert.go +++ b/internal/xstring/convert.go @@ -8,9 +8,6 @@ func FromBytes(b []byte) string { if len(b) == 0 { return "" } - if len(b) == 0 { - return "" - } return unsafe.String(&b[0], len(b)) }