Skip to content

Commit 7951551

Browse files
committed
Use same var names in extractor
1 parent 194eeeb commit 7951551

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ func extract(from interface{}, it interface{}) (interface{}, error) {
9191
return value.Interface(), nil
9292
}
9393
case reflect.Ptr:
94-
derefValue := reflect.ValueOf(from).Elem()
95-
if derefValue.IsValid() && derefValue.CanInterface() {
96-
return extract(derefValue.Interface(), it)
94+
value := reflect.ValueOf(from).Elem()
95+
if value.IsValid() && value.CanInterface() {
96+
return extract(value.Interface(), it)
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)