diff --git a/util/util_windows.go b/util/util_windows.go index ab490ad..3321033 100644 --- a/util/util_windows.go +++ b/util/util_windows.go @@ -5,8 +5,6 @@ package util import ( "path/filepath" "os" - - "hilbish/util" ) func FindExecutable(path string, inPath, dirs bool) error { @@ -23,15 +21,15 @@ func FindExecutable(path string, inPath, dirs bool) error { } else { _, err := os.Stat(path) if err == nil { - if util.Contains(pathExts, nameExt) { return nil } - return util.ErrNotExec + if Contains(pathExts, nameExt) { return nil } + return ErrNotExec } } } else { _, err := os.Stat(path) if err == nil { - if util.Contains(pathExts, nameExt) { return nil } - return util.ErrNotExec + if Contains(pathExts, nameExt) { return nil } + return ErrNotExec } }