Skip to content

Commit

Permalink
Extra type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
horpto authored and jackc committed Jul 31, 2023
1 parent 78d2bbb commit 4556b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4556b71

Please sign in to comment.