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

Fix .options defaultValue #75

Merged
merged 2 commits into from
Apr 10, 2017
Merged

Conversation

ntwcklng
Copy link
Collaborator

Test fails on current master branch.
Fixes #74

@ntwcklng ntwcklng requested a review from leo April 6, 2017 06:58
@leo leo merged commit d740803 into leo:master Apr 10, 2017
@leo
Copy link
Owner

leo commented Apr 10, 2017

Beautiful, thanks!

@@ -65,7 +65,7 @@ class Args {
}

for (const item of list) {
const preset = item.defaultValue || false;
const preset = item.defaultValue || undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why have the || undefined here at all?

Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Done in #78

This was referenced Apr 11, 2017
@leo
Copy link
Owner

leo commented Apr 11, 2017

leo pushed a commit that referenced this pull request May 1, 2022
* undefined defaultValue in .options

* add test
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