summaryrefslogtreecommitdiff
path: root/index_test.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-01 19:11:41 -0800
committerlhchavez <[email protected]>2021-09-05 18:52:01 -0700
commit5def02a589a2c1653f4bb515fdec290361a222be (patch)
treeb99d3a8204c27c902f711bc4f8f8b48baa8352bb /index_test.go
parent70e5e419cf0cab31553b106267a0296f3cd672d9 (diff)
The big Callback type adjustment of 2020
This change makes all callbacks that can fail return an `error`. This makes things a lot more idiomatic.
Diffstat (limited to 'index_test.go')
-rw-r--r--index_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/index_test.go b/index_test.go
index 5fa3f9f..aea5c19 100644
--- a/index_test.go
+++ b/index_test.go
@@ -223,9 +223,9 @@ func TestIndexAddAllCallback(t *testing.T) {
checkFatal(t, err)
cbPath := ""
- err = idx.AddAll([]string{}, IndexAddDefault, func(p, mP string) int {
+ err = idx.AddAll([]string{}, IndexAddDefault, func(p, mP string) error {
cbPath = p
- return 0
+ return nil
})
checkFatal(t, err)
if cbPath != "README" {