Skip to content

Commit

Permalink
Merge pull request #1292 from funvit/patch-1
Browse files Browse the repository at this point in the history
Duplicated length check removed
  • Loading branch information
asmyasnikov authored Jun 14, 2024
2 parents b0a63b1 + 6f2613c commit 96864d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/xstring/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 96864d9

Please sign in to comment.