-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
refactor: if-else statement code #806
Conversation
hey @derberg Please review it |
…nto if-else-correction
@derberg Please review it now |
ups, this is causing another code smells, sonad do not like nested ternary. Please bring your if-s back |
@parasss19 lemme know if you need help |
…nto if-else-correction
…ncapi-react into if-else-correction
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
Changes proposed in this pull request:
When using nested if statements, it can be difficult to keep track of the logic and understand the flow of the code. Using else if makes the code more concise and easier to follow.
fixed
Related issue(s)
fixes #786