Hello,
I had the following code:
if not is_available( ).
this rule implemented in ATC checks forced me to change it to
if is_available( ) = abap_false.
I am not happy with the result and I consider the original code better.
I understand I can revert the logic of the code completely, but since I do not want to have the most of the method's code inside if-block I prefer this solution. More over this approach is respecting 'Fail fast' rule.
Consider this rule implementation refactoring, please.
Hello, I had the following code:
if not is_available( ).
this rule implemented in ATC checks forced me to change it to
if is_available( ) = abap_false.
I am not happy with the result and I consider the original code better. I understand I can revert the logic of the code completely, but since I do not want to have the most of the method's code inside if-block I prefer this solution. More over this approach is respecting 'Fail fast' rule. Consider this rule implementation refactoring, please.