Skip to content

Initializes all_group to be an empty array#49

Merged
adammck merged 2 commits intoadammck:masterfrom
lolchocotaco:host-fix
Jan 19, 2017
Merged

Initializes all_group to be an empty array#49
adammck merged 2 commits intoadammck:masterfrom
lolchocotaco:host-fix

Conversation

@lolchocotaco
Copy link
Contributor

Fixes #48.

cli.go Outdated
func gatherResources(s *state) map[string]interface{} {
groups := make(map[string]interface{}, 0)
all_group := allGroup{Vars: make(map[string]interface{})}
all_group := allGroup{Vars: make(map[string]interface{}, 0), Hosts: make([]string, 0)}
Copy link
Owner

Choose a reason for hiding this comment

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

The size parameter is unnecessary when making a map.

@adammck
Copy link
Owner

adammck commented Nov 5, 2016

Great, thanks for the patch! Looks good to me, other than the very minor nit above.
Fixed!

@adammck adammck merged commit be8d8d7 into adammck:master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants