diff --git a/sharding/utils/marshal_test.go b/sharding/utils/marshal_test.go index 33cdd91da..b1f69bff7 100644 --- a/sharding/utils/marshal_test.go +++ b/sharding/utils/marshal_test.go @@ -27,8 +27,7 @@ func buildblob(size int64) []interface{} { } func TestConvertInterface(t *testing.T) { - var slice interface{} - slice = []interface{}{0, 1, 2, 3, 4, 5} + slice := []interface{}{0, 1, 2, 3, 4, 5} convertedValue, err := ConvertInterface(slice, reflect.Slice) if err != nil { t.Fatalf("Error: %v %v", err, convertedValue)