Silence gopls hints (#2195)
This commit is contained in:
1 parent
4dc3d37684
commit
4bfd3c8ac5
9 files changed
+26
-27
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user