diff options
| author | Daniel Martí <mvdan@mvdan.cc> | 2017-04-25 10:58:12 +0100 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2017-04-25 14:38:10 +0000 |
| commit | 516e6f6d5d83dc3dcee6403fab25d5954bbf3f62 (patch) | |
| tree | bee22fb6cea3296534ef24aafde3edbaec50d93e /src/path/filepath | |
| parent | 11c7b4491bd2cd1deb7b50433f431be9ced330db (diff) | |
| download | go-516e6f6d5d83dc3dcee6403fab25d5954bbf3f62.tar.xz | |
all: remove some unused parameters in test code
Mostly unnecessary *testing.T arguments.
Found with github.com/mvdan/unparam.
Change-Id: Ifb955cb88f2ce8784ee4172f4f94d860fa36ae9a
Reviewed-on: https://go-review.googlesource.com/41691
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/path/filepath')
| -rw-r--r-- | src/path/filepath/path_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go index 0c21d213f7..d2a78f5bee 100644 --- a/src/path/filepath/path_test.go +++ b/src/path/filepath/path_test.go @@ -388,7 +388,7 @@ func checkMarks(t *testing.T, report bool) { // Assumes that each node name is unique. Good enough for a test. // If clear is true, any incoming error is cleared before return. The errors // are always accumulated, though. -func mark(path string, info os.FileInfo, err error, errors *[]error, clear bool) error { +func mark(info os.FileInfo, err error, errors *[]error, clear bool) error { if err != nil { *errors = append(*errors, err) if clear { @@ -437,7 +437,7 @@ func TestWalk(t *testing.T) { errors := make([]error, 0, 10) clear := true markFn := func(path string, info os.FileInfo, err error) error { - return mark(path, info, err, &errors, clear) + return mark(info, err, &errors, clear) } // Expect no errors. err := filepath.Walk(tree.name, markFn) |
