Reputation: 399
For my simple code It seems that the return statement is not needed after the error statement.
Upvotes: 1
Views: 304
Reputation: 410
warning
instead.Note: Your function will throw anyway, if only modifying the code to use warning
. This is because the return variable c
is not assigned before after the if
-statement.
Upvotes: 3