Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

TODO - make your code good #1

Closed
7 tasks done
Mr-VIT opened this issue Nov 30, 2020 · 1 comment
Closed
7 tasks done

TODO - make your code good #1

Mr-VIT opened this issue Nov 30, 2020 · 1 comment

Comments

@Mr-VIT
Copy link

Mr-VIT commented Nov 30, 2020

if (args[1].ToLower() == "red"){}... if (args[1].ToLower() == "blue")...

  • call .ToLower() once and save into var
  • add else or better use switch instead of if{}if{}...
  • remove empty Event Listeners
XtraCube pushed a commit that referenced this issue Dec 4, 2020
@XtraCube
Copy link
Owner

XtraCube commented Dec 4, 2020

Fixed all the issues. Thank you for recommending these changes

@XtraCube XtraCube closed this as completed Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants