remove redundant code (#5310)

This commit is contained in:
Alessandro Ros 2026-01-01 20:51:40 +01:00 committed by GitHub
parent b2af5defd0
commit 19d3a9c80d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,13 +46,6 @@ func (t *klv) createEncoder() error {
}
func (t *klv) ProcessUnit(u *unit.Unit) error { //nolint:dupl
if t.encoder == nil {
err := t.createEncoder()
if err != nil {
return err
}
}
pkts, err := t.encoder.Encode(u.Payload.(unit.PayloadKLV))
if err != nil {
return err