Skip to content

Commit 96864d9

Browse files
authored
Merge pull request #1292 from funvit/patch-1
Duplicated length check removed
2 parents b0a63b1 + 6f2613c commit 96864d9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/xstring/convert.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ func FromBytes(b []byte) string {
88
if len(b) == 0 {
99
return ""
1010
}
11-
if len(b) == 0 {
12-
return ""
13-
}
1411

1512
return unsafe.String(&b[0], len(b))
1613
}

0 commit comments

Comments
 (0)