Skip to content

Update CommunityProjectsBuild.kt #4229

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 2 commits into from
Sep 23, 2024
Merged

Conversation

GeorgCantor
Copy link
Contributor

@GeorgCantor GeorgCantor commented Sep 22, 2024

Use any Instead of forEach: Instead of iterating through all properties and setting a flag, we can use the any function to check if any property meets the condition. This will stop the search as soon as a match is found.

@qwwdfsad qwwdfsad changed the base branch from master to develop September 23, 2024 10:30
@qwwdfsad qwwdfsad self-requested a review September 23, 2024 10:30
@qwwdfsad qwwdfsad merged commit 8adb37c into Kotlin:develop Sep 23, 2024
1 check passed
@qwwdfsad
Copy link
Member

Thanks!

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