From d1934452bb985119369d077c89cb899d6fa2eeb6 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sun, 29 Dec 2024 01:52:00 -0400 Subject: [PATCH] fix: dont import util in the util package (bruh) --- util/util_windows.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 } }