-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unreachable code #7
Comments
Another such place:
|
So the problem you're highlighting would occur if an array within the object we're saving to global storage contained a member that was null, right? |
I think highlighting lines are not correct because value cannot be
if (typeof value === 'undefined') value = ''; Another option here to have line 68 if (obj[i] === null || typeof obj[i] !== 'object') |
Unfortunately I don't have any examples to hand, but those conditions were added specifically as a result of scenarios I encountered where they proved to be required. I'd rather leave them in now than remove them at the risk of breaking anything |
OK, try to provide examples |
ewd-document-store/lib/proto/setDocument.js
Line 57 in 55179cb
This doesn't work because
above, we have this validation: https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/setDocument.js#L49
The text was updated successfully, but these errors were encountered: