Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Bug fix #88 - The function internals.evalResults in lib/batch.js now returns 0 when Hoek.reach evaluates to 0 instead of {}. #92

Merged
merged 7 commits into from
Sep 4, 2018

Conversation

adisingh007
Copy link
Contributor

@adisingh007 adisingh007 commented Aug 20, 2018

The function internals.evalResults in lib/batch.js returned {} even when

Hoek.reach(result, path)  

evaluated to 0. Since 0 is a falsy value, the line:

Hoek.reach(result, path) || {}  

always evaluated to {}.

This fixes the above mentioned bug number #88 . And also a test case is added to confirm the same.

…ek.reach evaluated to 0. The issue was fixed. Existing test cases ran perfectly.
@adisingh007 adisingh007 changed the title Bug fix bassmaster#88 Bug fix #88 - The function internals.evalResults in lib/batch.js now returns 0 when Hoek.reach evaluates to 0 instead of {}. Aug 20, 2018
Copy link
Contributor

@cadecairos cadecairos left a comment

Choose a reason for hiding this comment

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

@adisingh007, thank you very much for filing and fixing this issue (and for including tests!) !

@cadecairos cadecairos merged commit c325841 into outmoded:master Sep 4, 2018
@adisingh007 adisingh007 deleted the bug-fix-bassmaster#88 branch September 5, 2018 09:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants