Skip to content

Consolidate filter handling: applyFilters. #32655

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

Closed
wants to merge 2 commits into from
Closed

Consolidate filter handling: applyFilters. #32655

wants to merge 2 commits into from

Conversation

dukbong
Copy link
Contributor

@dukbong dukbong commented Apr 17, 2024

This PR consolidates the functionality of the previous methods, enableFilters and disableFilters, which were performing similar tasks, thus eliminating redundancy.

The new applyFilters method integrates these two operations into one, enhancing code reusability and reducing duplication. This change makes the code more concise and easier to maintain. Additionally, the new method accepts an enable parameter to determine whether to enable or disable the filters, allowing both actions to be handled within a single method.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 17, 2024
@bclozel
Copy link
Member

bclozel commented Apr 17, 2024

I don't think this improves the code.
Please avoid submitting PRs for stylistic changes in the future.

@bclozel bclozel closed this Apr 17, 2024
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 17, 2024
@dukbong
Copy link
Contributor Author

dukbong commented Apr 17, 2024

I don't think this improves the code. Please avoid submitting PRs for stylistic changes in the future.

I apologize. I won't submit PRs for stylistic changes or personal issues in the future.

@dukbong dukbong deleted the consolidate branch April 17, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants