Skip to content

Commit

Permalink
Replace ok -> exists in one more check
Browse files Browse the repository at this point in the history
  • Loading branch information
itai Schwartz committed Jul 3, 2020
1 parent 952ee49 commit 4e9286d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ func (d *Decoder) decodeStruct(dst reflect.Value, src ast.Node) error {
continue
}
fieldName := fieldErr.StructField()
structField, ok := structFieldMap[fieldName]
if !ok {
structField, exists := structFieldMap[fieldName]
if !exists {
continue
}
node, exists := keyToNodeMap[structField.RenderName]
Expand Down

0 comments on commit 4e9286d

Please sign in to comment.