Skip to content

Conversation

mauigna06
Copy link

No description provided.

Comment on lines +121 to +126
if (value.toLowerCase() === 'false' || value === '0') {
return false;
}
if (value.toLowerCase() === 'true' || value === '1') {
return true;
}
Copy link
Member

Choose a reason for hiding this comment

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

This is not going to work since you don't know if the caller wants a Number or Boolean.

I'd suggest adding a typed wrapper so the caller can be clear what it wants. I.e. readBoolQueryVariable().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants