Skip to content

Commit

Permalink
Rename unused parameters to resolve linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Feb 12, 2024
1 parent 1b71cb4 commit d0a2648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/pwalk/pwalk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestWalkDirManyErrors(t *testing.T) {
max := uint32(total / 2)
e42 := errors.New("42")
err := Walk(dir,
func(p string, i os.FileInfo, _ error) error {
func(_ string, _ os.FileInfo, _ error) error {
if atomic.AddUint32(&count, 1) > max {
return e42
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/pwalkdir/pwalkdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestWalkDirManyErrors(t *testing.T) {
max := uint32(total / 2)
e42 := errors.New("42")
err := Walk(dir,
func(p string, e fs.DirEntry, _ error) error {
func(_ string, _ fs.DirEntry, _ error) error {
if atomic.AddUint32(&count, 1) > max {
return e42
}
Expand Down

0 comments on commit d0a2648

Please sign in to comment.