Merge ea3669ea6e027edd416e95b5fabd3d5da894113e into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d

This commit is contained in:
youzeliang 2025-03-23 09:37:09 +08:00 committed by GitHub
commit 7ff0284ccb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ func cleanPath(p string) string {
// If the original string was not modified (or only shortened at the end), // If the original string was not modified (or only shortened at the end),
// return the respective substring of the original string. // return the respective substring of the original string.
// Otherwise return a new string from the buffer. // Otherwise, return a new string from the buffer.
if len(buf) == 0 { if len(buf) == 0 {
return p[:w] return p[:w]
} }