hapijs / yar

A hapi session manager
Other
133 stars 59 forks source link

Do not cast all falsy values to null #122

Closed simplesmiler closed 6 years ago

simplesmiler commented 6 years ago

Fix #121.

I kept undefined casted to null to keep this change non-breaking. It seems to be common to return request.yar.get('stored'), and hapi will complain if controller returns undefined.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.