Skip to content

Commit 780a592

Browse files
committed
chore: placate the linter
1 parent cda5afb commit 780a592

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libevm/pseudo/type.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ func (c *concrete[T]) UnmarshalJSON(b []byte) error {
231231
func (c *concrete[T]) EncodeRLP(w io.Writer) error { return rlp.Encode(w, c.val) }
232232

233233
func (c *concrete[T]) DecodeRLP(s *rlp.Stream) error {
234-
s.Kind() // is this required?
234+
if _, _, err := s.Kind(); err != nil {
235+
// DO NOT MERGE: is calling Kind() a necessary step?
236+
return err
237+
}
235238
return s.Decode(c.val)
236239
}

0 commit comments

Comments
 (0)