Skip to content

Commit

Permalink
chore: clean up decoder code (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Sep 9, 2024
1 parent 8bbf344 commit 20cc308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,11 @@ func (d *Decoder) decodeFields(mesgDef *proto.MessageDefinition, mesg *proto.Mes
}

func (d *Decoder) expandComponents(mesg *proto.Message, containingField *proto.Field, components []proto.Component) {
if len(components) == 0 {
if !containingField.Value.Valid(containingField.BaseType) {
return
}

if !containingField.Value.Valid(containingField.BaseType) {
if len(components) == 0 {
return
}

Expand Down

0 comments on commit 20cc308

Please sign in to comment.