Skip to content

Commit 04560ba

Browse files
committed
text/document: fix URIToPath
1 parent 2c3a17e commit 04560ba

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

text/document/document.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,7 @@ func URIToPath(uri string) string {
116116
}
117117
}
118118

119-
path = filepath.FromSlash(path)
120-
if filepath.IsAbs(path) {
121-
if p, err := filepath.Abs(path); err == nil {
122-
path = p
123-
}
124-
}
125-
return path
119+
return filepath.FromSlash(path)
126120
}
127121

128122
func buildIndex(content string) *index {

0 commit comments

Comments
 (0)