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

[CHORE] Remove superflous code in generated PyGame code #3966

Closed
Felienne opened this issue Jan 23, 2023 · 0 comments · Fixed by #5117
Closed

[CHORE] Remove superflous code in generated PyGame code #3966

Felienne opened this issue Jan 23, 2023 · 0 comments · Fixed by #5117
Assignees

Comments

@Felienne
Copy link
Member

I think the lines

          if event.type == pygame.KEYDOWN:
            if event.unicode == 'x':

could be merged into one with and?

          if event.type == pygame.KEYDOWN and event.unicode == 'x':

simplifying the code even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants