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

Removed repeating code and improved readability #1

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

dudozermaks
Copy link
Contributor

Cool instrument! If you have any questions about my pr, feel free to ask!

@dudozermaks dudozermaks changed the title Removed repeting code and improved readability Removed repeating code and improved readability Jan 27, 2023
music.append(file)
file_extension = file.split(".")[-1]

if file_extension in supported_formats:
Copy link
Contributor Author

@dudozermaks dudozermaks Jan 27, 2023

Choose a reason for hiding this comment

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

in statement checks if supported_formats (array) has file_extension

Copy link
Owner

Choose a reason for hiding this comment

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

Nice optimizations! Merging your pr!

@tdeerenberg tdeerenberg merged commit 0aeb8a1 into tdeerenberg:main Jan 27, 2023
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