summaryrefslogtreecommitdiff
path: root/os.go
diff options
context:
space:
mode:
authorchainhelen <chainhelen@gmail.com>2018-06-11 21:08:22 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-06-11 15:08:22 +0200
commit1e5b25091ce634d180129a0b156aa24a7e9a5327 (patch)
tree7ab7ab2c1ed5b7ffdd8e884c9e5f0149f594c24e /os.go
parent0132a4d11ddb7d933527c4da146a41c181f4b234 (diff)
Use path.Join instead of + (#143)
Towards windows support.
Diffstat (limited to 'os.go')
-rw-r--r--os.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/os.go b/os.go
index 85ca8f092..5cbb0f5ec 100644
--- a/os.go
+++ b/os.go
@@ -123,7 +123,7 @@ func HandleCodeFetch(moduleSpecifier string, containingFile string) (out []byte)
sourceCodeBuf, err = FetchRemoteSource(moduleName, filename)
} else if strings.HasPrefix(moduleName, assetPrefix) {
f := strings.TrimPrefix(moduleName, assetPrefix)
- sourceCodeBuf, err = Asset("dist/" + f)
+ sourceCodeBuf, err = Asset(path.Join("dist", f))
if err != nil {
logDebug("%s Asset doesn't exist. Return without error", moduleName)
err = nil