Skip to content

[Minor][SIL] Refactor matches function in Effects #72564

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

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

Mayank-84
Copy link
Contributor

  • This PR refactors the existing conditional check within the matches function.
  • This improves code readability and reduces the number of lines.

@Mayank-84 Mayank-84 requested a review from eeckstein as a code owner March 25, 2024 18:57
@Mayank-84
Copy link
Contributor Author

Mayank-84 commented Mar 25, 2024

Hi @eeckstein, I see that we can follow latest swift syntaxes like shorter versions of if-let, etc at multiple places. Wanted to understand why are we not using this within these files? Are there any constraints related to CI or any platform versions that it is supporting?

@eeckstein
Copy link
Contributor

Are there any constraints related to CI or any platform versions that it is supporting?

The only constraint is that It should be buildable with swift 5.9 (or later). If that's the case we can change to the newer syntax.

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm

@Mayank-84
Copy link
Contributor Author

@eeckstein Can you trigger the smoke test CI pipeline? I guess it is not accessible to me.

@Mayank-84
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor

@swift-ci smoke test

@eeckstein eeckstein enabled auto-merge March 27, 2024 07:13
@eeckstein eeckstein merged commit 1a0bcb2 into swiftlang:main Mar 27, 2024
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