Skip to content

Simplify the implementations of beTruthy and beFalsy#978

Merged
younata merged 2 commits intoQuick:mainfrom
younata:simplify_beTruthy_beFalsy
Apr 17, 2022
Merged

Simplify the implementations of beTruthy and beFalsy#978
younata merged 2 commits intoQuick:mainfrom
younata:simplify_beTruthy_beFalsy

Conversation

@younata
Copy link
Copy Markdown
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.

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
Copy Markdown
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.

2 participants