-
-
Notifications
You must be signed in to change notification settings - Fork 36k
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
Remove last "return" statement #5628
Comments
Is there any reason why we are expliclity testing for 5 return statements? If not, i think we should remove it. |
I'd agree with @DDaems that the return test is not necessary. If the code returns the correct answer and passes the if/else number tests that test isn't important. |
I would change it to |
@SaintPeter then anyone who would have exactly five would not pass either. To remain as accurate as possible, I would change it to |
@pmbenjamin : You are right my fix 63f324c actually has |
@smrajagopal, good enough for me! |
…st_case Fix #5628 - Remove unwanted test case
Waypoint: Chaining If Else Statements
My code is all correct but it didn't want to pass. The error was "You should have five return statements" - so I removed the "change me" return statement and it passed.
But the instructions don't tell you to remove the last return statement.
My code:
The text was updated successfully, but these errors were encountered: