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

Simplified the code #4

Merged
merged 1 commit into from
Dec 3, 2022
Merged

Simplified the code #4

merged 1 commit into from
Dec 3, 2022

Conversation

41Leahcim
Copy link
Contributor

Collapsed an else{ if .. } block. Replaced a closure with the function called in the closure. Replaced explicit return with an implicit return. Removed two unnecessary casts. I would recommend to use a code checking tool like clippy, as it could help you to improve the performance and readability of your code.

…e closure. Replaced explicit return with an implicit return. Removed two unnecessary casts.
@JasonWei512 JasonWei512 merged commit 6861b1d into JasonWei512:develop Dec 3, 2022
@JasonWei512
Copy link
Owner

Thanks!

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.

None yet

2 participants