One error missing return statement on line22?but I saw the code didn't get why error is showing.see below code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

One error missing return statement on line22?but I saw the code didn't get why error is showing.see below code

Input this 👉 Smit smitkalkani@gmail.com 1234 smitkalkani@gmail.com 1234 https://code.sololearn.com/cS63zsHre0IO/?ref=app https://code.sololearn.com/cS63zsHre0IO/?ref=app

23rd Jun 2019, 9:49 PM
Smit Kalkani
Smit Kalkani - avatar
2 Answers
+ 4
line 74: Only one return statement. You need two. Because you have an if statement. condition true -> return something condition false -> return something
24th Jun 2019, 2:03 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
In the loginuser method, not all paths have a return statement(line ~80)
23rd Jun 2019, 10:10 PM
CodeMStr
CodeMStr - avatar