W2003 Safety Warnings
Safety
unreachable code; this statement will never execute because it comes after a return
When this occurs
Function with return type but no return
Example error message
warning[W2003]:
Function 'foo' declares return type(s) but has no return statement
Suppressing this warning
This warning can be suppressed using:
Suppress with #suppress(W2003) at function declaration site OR #suppress(ALL) at top of file How to fix
Ensure all code paths return a value, or suppress with `#suppress(W2003)`.