Skip to content

Commit

Permalink
Merge pull request #1127 from rsteube/go-carpet-func
Browse files Browse the repository at this point in the history
go carpet func
  • Loading branch information
rsteube authored May 11, 2022
2 parents 246a47f + 0422fbf commit 46f0f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/actions/tools/golang/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func ActionFuncs(files ...string) carapace.Action {
// TODO optimize performance - goroutines?
if len(files) == 0 {
filepath.Walk(filepath.Dir(root), func(path string, info fs.FileInfo, err error) error {
if !info.IsDir() && strings.HasSuffix(path, ".go") && !strings.HasSuffix("path", "_test.go") {
if !info.IsDir() && strings.HasSuffix(path, ".go") && !strings.HasSuffix(path, "_test.go") {
for _, name := range readFuncs(path) {
names[name] = true
}
Expand Down

0 comments on commit 46f0f74

Please sign in to comment.