Skip to content

Commit

Permalink
definition: addresses code-review
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Mar 24, 2018
1 parent 72ff732 commit 5c9f8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ func (gt *Enum) Values() []*EnumValueDefinition {
}
func (gt *Enum) Serialize(value interface{}) interface{} {
v := value
for reflect.ValueOf(v).Kind() == reflect.Ptr {
if reflect.ValueOf(v).Kind() == reflect.Ptr {
v = reflect.Indirect(reflect.ValueOf(v)).Interface()
}
if enumValue, ok := gt.getValueLookup()[v]; ok {
Expand Down

0 comments on commit 5c9f8b0

Please sign in to comment.