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

removed unnecessary objects in compose.go #428

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

surajssd
Copy link
Member

In compoese.go while iterating on the ServiceConfig objects first it's keys were pulled and then data was pulled separately which can be done in one step by iterating on the dictionary.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 14, 2017
logrus.Fatalf("%q failed to load ports from compose file: %v", name, err)
}
serviceConfig.Port = ports
for name, composeServiceConfig := range composeObject.ServiceConfigs.All() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Below this line code is as it is, only for loop has changed and the unncecessary things above are removed.

In compoese.go while iterating on the ServiceConfig objects first
it's keys were pulled and then data was pulled separately which
can be done in one step by iterating on the dictionary.
@surajssd surajssd force-pushed the remove_unnecessary_objects branch from d0b1d32 to 775f501 Compare February 14, 2017 03:01
@surajssd surajssd requested a review from kadel February 14, 2017 12:14
@surajssd
Copy link
Member Author

ping @kadel

@kadel kadel merged commit fb042c7 into kubernetes:master Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. review needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants