Skip to content

Commit

Permalink
fix: add comment back in correct place, right above the place we muta…
Browse files Browse the repository at this point in the history
…te path

Signed-off-by: Taylor Price <tayworm@gmail.com>
  • Loading branch information
drpebcak committed Aug 6, 2024
1 parent ec58517 commit 4fd8e8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func openFile(path string) (io.ReadCloser, bool, error) {
func loadLocal(base *source, name string) (*source, bool, error) {
filePath := name
if !filepath.IsAbs(name) {
// We want to keep all strings in / format, and only convert to platform specific when reading
// This is why we use path instead of filepath.
filePath = path.Join(base.Path, name)
}

Expand Down

0 comments on commit 4fd8e8a

Please sign in to comment.