Skip to content

Commit 2eea63d

Browse files
authored
move comment to if block
Signed-off-by: Ceyhun Onur <[email protected]>
1 parent 96d49b8 commit 2eea63d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rlp/rlpgen/gen.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ func (bctx *buildContext) makeOp(name *types.Named, typ types.Type, tags rlpstru
687687
if bctx.isDecoder(typ) {
688688
return nil, fmt.Errorf("type %v implements rlp.Decoder with non-pointer receiver", typ)
689689
}
690-
// libevm: named types are reduced to their underlying basic type in this loop.
691-
// We're handling named types here by passing the named type as the main type.
692-
// See [named.libevm.go] for more details.
693690
if hasBasicUnderlying(typ) {
691+
// libevm: named types are reduced to their underlying basic type in this loop.
692+
// We're handling named types here by passing the named type as the main type.
693+
// See [named.libevm.go] for more details.
694694
return bctx.makeNamedBasicOp(typ)
695695
}
696696
// TODO: same check for encoder?

0 commit comments

Comments
 (0)