Skip to content

Commit 4fd8e8a

Browse files
committed
fix: add comment back in correct place, right above the place we mutate path
Signed-off-by: Taylor Price <[email protected]>
1 parent ec58517 commit 4fd8e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: pkg/loader/loader.go

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func openFile(path string) (io.ReadCloser, bool, error) {
7070
func loadLocal(base *source, name string) (*source, bool, error) {
7171
filePath := name
7272
if !filepath.IsAbs(name) {
73+
// We want to keep all strings in / format, and only convert to platform specific when reading
74+
// This is why we use path instead of filepath.
7375
filePath = path.Join(base.Path, name)
7476
}
7577

0 commit comments

Comments
 (0)