fix golint issues (#899)

This commit is contained in:
Kevin Wan
2021-08-11 11:38:55 +08:00
committed by GitHub
parent f204729482
commit e024aebb66

View File

@@ -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
}
}