diff --git a/db_test.go b/db_test.go index f285aa097..82f4027df 100644 --- a/db_test.go +++ b/db_test.go @@ -2025,11 +2025,9 @@ func ExampleDB_Subscribe() { // a-key is now set to a-value } -func removeDir(dir string) func() { - return func() { - if err := os.RemoveAll(dir); err != nil { - panic(err) - } +func removeDir(dir string) { + if err := os.RemoveAll(dir); err != nil { + panic(err) } }