Closed TwitchBronBron closed 1 year ago
Yes, not only do we need to count throw
like a return, but it should be counted like a "wildcard" case which satisfies both returning a value and returning void...
What's needed to fix this? I'll do it. I'm tired of faux returns to counter this.. ugly.
It should be fixed since https://github.com/rokucommunity/bslint/pull/78 but maybe it wasn't released?
Yeah, this has been fixed in a recent release.
We consider
throw
statements asreturn
statements when considering "not all code paths return a value" check.