AVOID_RETURNING_NULL_FOR_VOID
Safety
Error
Avoid returning null for void
Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.
Avoid returning null for void
Function/method shouldn’t be called with a null argument for the non-nullable type argument.
Don't use the Null type, unless you are positive that you don't want void.
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.