fix: dont import util in the util package (bruh)

snail
sammyette 2024-12-29 01:52:00 -04:00
parent 7174f40b5f
commit d1934452bb
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 4 additions and 6 deletions

View File

@ -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
}
}