Skip to content

Commit

Permalink
Remove redundant assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Jan 30, 2023
1 parent 075b9df commit 12758d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vm/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func FetchField(from interface{}, field *Field) interface{} {
if kind != reflect.Invalid {
if kind == reflect.Ptr {
v = reflect.Indirect(v)
kind = v.Kind()
}
// We can use v.FieldByIndex here, but it will panic if the field
// is not exists. And we need to recover() to generate a more
Expand Down

0 comments on commit 12758d7

Please sign in to comment.