Skip to content

Commit ec58517

Browse files
authored
Merge pull request #728 from drpebcak/windows-path
2 parents c378de2 + d8b1ea8 commit ec58517

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: pkg/loader/loader.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ func openFile(path string) (io.ReadCloser, bool, error) {
6868
}
6969

7070
func loadLocal(base *source, name string) (*source, bool, error) {
71-
// We want to keep all strings in / format, and only convert to platform specific when reading
72-
// This is why we use path instead of filepath.
7371
filePath := name
74-
if !path.IsAbs(name) {
72+
if !filepath.IsAbs(name) {
7573
filePath = path.Join(base.Path, name)
7674
}
7775

0 commit comments

Comments
 (0)