Skip to content

Commit 25a33ce

Browse files
Apply suggestions from code review
Co-authored-by: Alessio Perugini <[email protected]>
1 parent ffbbe77 commit 25a33ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: list.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ func (p *PathList) FilterOutHiddenFiles() {
9393

9494
// Filter will remove all the elements of the list that do not match
9595
// the specified acceptor function
96-
func (p *PathList) Filter(accpetorFunc func(*Path) bool) {
96+
func (p *PathList) Filter(acceptorFunc func(*Path) bool) {
9797
res := (*p)[:0]
9898
for _, path := range *p {
99-
if accpetorFunc(path) {
99+
if acceptorFunc(path) {
100100
res = append(res, path)
101101
}
102102
}

0 commit comments

Comments
 (0)