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

Refactored inject_zeros component in Vislib #1710

Merged
merged 2 commits into from
Oct 17, 2014

Conversation

stormpython
Copy link
Contributor

The current code for inject_zeros.js is a hot mess. This pull request cleans the code up substantially making it much easier to read as well as up-ing the test coverage to 100%.

} else if (obj.columns) {
return obj.columns;
} else {
return [obj];
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this condition supposed to represent? Perhaps it would be better to have else if (obj.series) { here?

@stormpython
Copy link
Contributor Author

Done

spalger pushed a commit that referenced this pull request Oct 17, 2014
Refactored inject_zeros component in Vislib
@spalger spalger merged commit 13b0ba6 into elastic:master Oct 17, 2014
@spalger
Copy link
Contributor

spalger commented Oct 17, 2014

LGTM!

@stormpython stormpython deleted the feature/refactor_inject_zeros branch October 20, 2014 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants