Skip to content

Commit 16afd51

Browse files
committed
remove unnecessary decResultType setting
1 parent 95d0021 commit 16afd51

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rlp/rlpgen/gen.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,6 @@ func (bctx *buildContext) makeNamedBasicOp(named *types.Named) (op, error) {
393393
}
394394
op.typ = named // Use the named type as the main type instead of the underlying basic type
395395

396-
// For decoding, we want to decode as the underlying basic type and convert to named type
397-
// So we need to set decResultType to the underlying basic type
398-
op.decResultType = basic
399-
400396
return op, nil
401397
}
402398

0 commit comments

Comments
 (0)