Timeline for Non-void method might not return a value or might have statement after a return statement
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 16, 2016 at 19:28 | vote | accept | CommunityBot | ||
Jul 16, 2016 at 18:20 | history | edited | user24737 | CC BY-SA 3.0 |
added 112 characters in body
|
Jul 16, 2016 at 14:45 | history | edited | Adrian Larson♦ | CC BY-SA 3.0 |
added 40 characters in body
|
Jul 16, 2016 at 7:25 | answer | added | Eric | timeline score: 5 | |
Jul 16, 2016 at 6:45 | comment | added | Mr.Frodo |
You have return statement in if condition. What if this if block doesn't get execute.I think you have to add one more return for satisfying that need.return '' might work.
|
|
Jul 16, 2016 at 6:37 | history | asked | user24737 | CC BY-SA 3.0 |