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

style: use generator expression in CacheControlMiddleware.any() #1049

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

pratapvardhan
Copy link
Contributor

Since any() doesn't require a materialized list, simplify the code to use generator expression instead of a list comprehension. Makes it ~tiny bit performant and readable. cc @vincentsarago

@vincentsarago vincentsarago merged commit c796d5b into developmentseed:main Dec 19, 2024
10 checks passed
@pratapvardhan pratapvardhan deleted the any branch December 20, 2024 09:35
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