^
What he said about the return statement.
You have a function that returns a boolean and it should return a boolean on all code paths.
The unreachable code is likely to do with the break statements.
If you're returning from each of the defined cases then the break statements after each return are never actually reached.
Why did you delete the original post? Someone else might have found it useful![]()
Why did you delete the original post? Someone else might have found it useful![]()
Maybe he doesn't want internetz catz spyinz on hiz programming![]()