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

A bunch of small improvements and fixes #2

Merged
merged 5 commits into from
Jan 13, 2022
Merged

Conversation

koskimas
Copy link
Contributor

@koskimas koskimas commented Jan 13, 2022

Hi,

I read through the code and spotted some places for improvement and some bugs. Feel free to pick whatever you like from this and throw away the rest. I may have also misunderstood some stuff.

There's a separate commit per change. The commit messages should explain the change.

Before || was used that also forwards control for falsy values like an empty string and zero.
?? only does that for missing values (and nulls, but they are handled separately)
@thdxr
Copy link
Collaborator

thdxr commented Jan 13, 2022

Amazing thanks for this! All looks good to me - merging

@thdxr thdxr merged commit c9a93be into sst:master Jan 13, 2022
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.

2 participants