Skip to content

Simplified the code#4

Merged
JasonWei512 merged 1 commit intoJasonWei512:developfrom
LeahScholten:develop
Dec 3, 2022
Merged

Simplified the code#4
JasonWei512 merged 1 commit intoJasonWei512:developfrom
LeahScholten:develop

Conversation

@LeahScholten
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants