From 4556b71ff87b815adabf7422eca26ed3461347c7 Mon Sep 17 00:00:00 2001 From: horpto <__singleton__@hackerdom.ru> Date: Mon, 31 Jul 2023 02:13:22 +0300 Subject: [PATCH] Extra type casting --- testutil/testutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/testutil.go b/testutil/testutil.go index 52bff70..bf9c15d 100644 --- a/testutil/testutil.go +++ b/testutil/testutil.go @@ -84,7 +84,7 @@ func ForceEncoder(e interface{}, formatCode int16) interface{} { } case pgx.BinaryFormatCode: if e, ok := e.(pgtype.BinaryEncoder); ok { - return forceBinaryEncoder{e: e.(pgtype.BinaryEncoder)} + return forceBinaryEncoder{e: e} } } return nil