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

Remove unneeded check in AsyncToSync. #476

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Remove unneeded check in AsyncToSync. #476

merged 1 commit into from
Oct 9, 2024

Conversation

carltongibson
Copy link
Member

@carltongibson carltongibson commented Oct 5, 2024

current_executor is set unconditionally in the same block above.

current_executor = CurrentThreadExecutor()

Just a small cleanup, whilst reviewing sync.py.

@carltongibson carltongibson marked this pull request as ready for review October 5, 2024 08:40
asgiref/sync.py Outdated Show resolved Hide resolved
asgiref/sync.py Outdated Show resolved Hide resolved
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

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

@carltongibson Thanks 👍

current_executor is set unconditionally in the same block above.
@carltongibson carltongibson merged commit 63ea9e9 into main Oct 9, 2024
7 checks passed
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