Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unpacking configs into slices #48

Merged
merged 1 commit into from
Jul 26, 2016

Conversation

urso
Copy link

@urso urso commented Jul 25, 2016

Fix unpacking into top-level slice/array or unpacking into slice if
inline-tag is used.

@urso
Copy link
Author

urso commented Jul 25, 2016

Closes #45

if to == nil || (vTo.Kind() != reflect.Ptr && vTo.Kind() != reflect.Map) {

k := vTo.Kind()
isValid := to != nil && (k == reflect.Ptr || k == reflect.Map)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That lines is quite hard to read

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's easier to read then before. it says: to must not be nil and must be either a pointer or a map

@ruflin
Copy link
Contributor

ruflin commented Jul 25, 2016

LGTM

Fix unpacking into top-level slice/array or unpacking into slice if
`inline`-tag is used.
@urso urso force-pushed the fix/45-unpack-into-slice branch from 8ea6526 to d7456e2 Compare July 26, 2016 12:00
@ruflin ruflin merged commit c2070c5 into elastic:master Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants