fix golint issues (#899)

master
Kevin Wan 3 years ago committed by GitHub
parent f204729482
commit e024aebb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -518,14 +518,14 @@ func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int, baseKind re
target.Set(reflect.ValueOf(value))
ithVal.Set(target.Addr())
return nil
} else {
if ithVal.Kind() != reflect.TypeOf(value).Kind() {
return errTypeMismatch
}
}
ithVal.Set(reflect.ValueOf(value))
return nil
if ithVal.Kind() != reflect.TypeOf(value).Kind() {
return errTypeMismatch
}
ithVal.Set(reflect.ValueOf(value))
return nil
}
}

Loading…
Cancel
Save