Skip to content

Commit 68cc092

Browse files
kittaakoscmaglie
andauthored
Update uri.go
Co-authored-by: Cristian Maglie <[email protected]>
1 parent 0f97832 commit 68cc092

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

uri.go

-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ func (uri DocumentURI) unbox() string {
5454
// Converts `"C:"` to `"c:"` to be compatible with VS Code URI's drive letter casing
5555
// https://github.com/Microsoft/vscode/issues/68325#issuecomment-462239992
5656
func lowercaseDriveSegment(pathSegment string) string {
57-
if len(pathSegment) == 0 {
58-
return pathSegment
59-
}
6057
if expUppercaseDriveID.MatchString(pathSegment) {
6158
chars := []rune(pathSegment)
6259
chars[0] = unicode.ToLower(chars[0])

0 commit comments

Comments
 (0)