aboutsummaryrefslogtreecommitdiffstats
path: root/update-license.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-05-12 20:24:11 +0800
commitb79dd188d916da7adbf448dc27b0c59a04e0938d (patch)
tree7980ae848a916171fbc65fb958eebdf0c98406dc /update-license.go
parentd82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff)
downloaddexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.gz
dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.tar.zst
dexon-b79dd188d916da7adbf448dc27b0c59a04e0938d.zip
replaced several path.* with filepath.* which is platform independent
Diffstat (limited to 'update-license.go')
-rw-r--r--update-license.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-license.go b/update-license.go
index e55732a53..3ab81f98d 100644
--- a/update-license.go
+++ b/update-license.go
@@ -26,13 +26,13 @@ import (
"io/ioutil"
"os"
"os/exec"
- "path"
"regexp"
"runtime"
"sort"
"strings"
"sync"
"text/template"
+ "path/filepath"
)
var (
@@ -144,7 +144,7 @@ func getFiles(out chan<- string) {
return
}
}
- ext := path.Ext(line)
+ ext := filepath.Ext(line)
for _, wantExt := range extensions {
if ext == wantExt {
goto send