2
0

Replace interface{} with any

This commit is contained in:
Jack Christensen
2022-04-09 09:12:55 -05:00
parent 95265a7421
commit f14fb3d692
106 changed files with 1045 additions and 1045 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"github.com/jackc/pgx/v5/pgxtest"
)
func isExpectedEqBits(a interface{}) func(interface{}) bool {
return func(v interface{}) bool {
func isExpectedEqBits(a any) func(any) bool {
return func(v any) bool {
ab := a.(pgtype.Bits)
vb := v.(pgtype.Bits)
return bytes.Compare(ab.Bytes, vb.Bytes) == 0 && ab.Len == vb.Len && ab.Valid == vb.Valid