Skip to content

Commit

Permalink
fix some needed Type() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed Jul 11, 2016
1 parent 43f7b7d commit 3ef55a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baked_in.go
Expand Up @@ -1032,7 +1032,7 @@ func IsGt(v *Validate, topStruct reflect.Value, currentStructOrField reflect.Val
return field.Float() > p
case reflect.Struct:

if field.Type() == timeType || field.Type() == timePtrType {
if fieldType == timeType || fieldType == timePtrType {

return field.Interface().(time.Time).After(time.Now().UTC())
}
Expand Down Expand Up @@ -1247,7 +1247,7 @@ func IsLt(v *Validate, topStruct reflect.Value, currentStructOrField reflect.Val

case reflect.Struct:

if field.Type() == timeType || field.Type() == timePtrType {
if fieldType == timeType || fieldType == timePtrType {

return field.Interface().(time.Time).Before(time.Now().UTC())
}
Expand Down

0 comments on commit 3ef55a8

Please sign in to comment.