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

Ignore glucose null #1324

Merged
merged 2 commits into from
Dec 31, 2019
Merged

Ignore glucose null #1324

merged 2 commits into from
Dec 31, 2019

Conversation

scottleibrand
Copy link
Contributor

This was a failed attempt to fix #1265, but would probably be a good idea regardless.

@scottleibrand
Copy link
Contributor Author

I've been running this on a few of our rigs without regressions. Will merge soon for further testing if no further comments.

return obj;
if ( obj.glucose !== null ) {
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.

This will cause the map to return undefined instead of null values. If we first filter out those null values (via #1328) we can end up with a more concise array with only relevant values (no null or undefined).

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, merged that. Null checks are still good, though, so any reason not to merge this too?

@scottleibrand scottleibrand merged commit eaac5c0 into dev Dec 31, 2019
@scottleibrand scottleibrand deleted the ignore-glucose-null branch December 31, 2019 22:26
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.

3 participants