Inspectopedia
 
2024.3

Missing return statement

Error
New
Last modified: 03 December 2024

Reports functions that have no RETURN statements.

Example (Oracle):

The foo function must return the integer value but the function body returns nothing. To fix the error, add a RETURN statement (for example, return 1;).