diff --git a/manydbs_test.go b/manydbs_test.go index 595c81b28..d0e80040f 100644 --- a/manydbs_test.go +++ b/manydbs_test.go @@ -46,9 +46,8 @@ func createAndPutKeys(t *testing.T) { } var key [16]byte - _, rerr := rand.Read(key[:]) - if rerr != nil { - return rerr + if _, err := rand.Read(key[:]); err != nil { + return err } if err := nodes.Put(key[:], nil); err != nil { return err