Skip to content

Use lookupYAMLNode to safely check empty config nodes. #301

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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

psigen
Copy link
Member

@psigen psigen commented Apr 15, 2020

This addresses a bug where namespace entries need to have a spurious blank name entry because leaving them empty makes them null.

This fixes a bug where namespace entries need to have a spurious
blank name entry because leaving them empty makes them null.
@psigen psigen requested a review from jslee02 April 15, 2020 03:57
// Return if failed to find a tag of 'key'
if (not next)
// Return if failed to find a tag of 'key'.
if (!next)
Copy link
Member

Choose a reason for hiding this comment

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

For future reference, we don't prefer using not for consistency?

Copy link
Member Author

@psigen psigen Apr 15, 2020

Choose a reason for hiding this comment

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

Yes, the not, and, bitand, etc. text versions of the operators are in the c++ spec, but they are not commonly used and IIRC require permissive flags on some compilers like MSVC. So I don't really see a good reason to start using them here.

@psigen
Copy link
Member Author

psigen commented Apr 15, 2020

I am not yet sure if this works, waiting to see the unit tests run 😓

@jslee02 jslee02 self-requested a review April 15, 2020 04:15
@jslee02 jslee02 added this to the Chimera 0.2.0 milestone Apr 26, 2020
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