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
-1
@@ -312,7 +312,7 @@ func matchShellFile(s string) (matches []compMatch, result string) {
|
||||
|
||||
func matchExec(s string) (matches []compMatch, result string) {
|
||||
var words []string
|
||||
for _, p := range strings.Split(envPath, string(filepath.ListSeparator)) {
|
||||
for p := range strings.SplitSeq(envPath, string(filepath.ListSeparator)) {
|
||||
files, err := os.ReadDir(p)
|
||||
if err != nil {
|
||||
if !os.IsNotExist(err) {
|
||||
|
||||
Reference in new issue
Block a user