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

Simplify the implementations of beTruthy and beFalsy #978

Merged
merged 2 commits into from
Apr 17, 2022

Conversation

younata
Copy link
Member

@younata younata commented Apr 15, 2022

This was pointed out by @amomchilov in #917. Thanks!

Basically, we don't need to be doing the if let in these matchers. So, let's take them out.

This isn't even a minor version bump.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Perhaps the original implementation was because this simpler version didn't compile, but maybe things have changed in swift since the original implementation was written
@jessesquires jessesquires added this to the v10.0.0 milestone Apr 15, 2022
Copy link
Member

@jessesquires jessesquires left a comment

Choose a reason for hiding this comment

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

💯

@younata younata enabled auto-merge (squash) April 16, 2022 23:49
@younata younata merged commit 62203bd into Quick:main Apr 17, 2022
@younata younata deleted the simplify_beTruthy_beFalsy branch April 17, 2022 00:02
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.

None yet

2 participants