We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbbe77 commit 25a33ceCopy full SHA for 25a33ce
list.go
@@ -93,10 +93,10 @@ func (p *PathList) FilterOutHiddenFiles() {
93
94
// Filter will remove all the elements of the list that do not match
95
// the specified acceptor function
96
-func (p *PathList) Filter(accpetorFunc func(*Path) bool) {
+func (p *PathList) Filter(acceptorFunc func(*Path) bool) {
97
res := (*p)[:0]
98
for _, path := range *p {
99
- if accpetorFunc(path) {
+ if acceptorFunc(path) {
100
res = append(res, path)
101
}
102
0 commit comments