Silence gopls hints (#2195)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-10-09 02:18:16 +02:00
1 parent 4dc3d37684
commit 4bfd3c8ac5
9 files changed
+26 -27

No files matched your search

+1 -2
View File
@@ -174,8 +174,7 @@ func setDefaults() {
func setUserUmask() {}
func isExecutable(f os.FileInfo) bool {
exts := strings.Split(envPathExt, string(filepath.ListSeparator))
for _, e := range exts {
for e := range strings.SplitSeq(envPathExt, string(filepath.ListSeparator)) {
if strings.HasSuffix(strings.ToLower(f.Name()), strings.ToLower(e)) {
log.Print(f.Name(), e)
return true