Home
Return of boolean expressions should not be wrapped into an if-then-else statement
Rule description
- Return of boolean expressions should not be wrapped into an if-then-else statement
Non-compliant Code Example
function string TestFunctionCall (string cnt, boolean exp ) if exp then //Non compliant code return true; else return false; end if return cnt end function