Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

19 lines
372 B
Plaintext

Return of boolean literal statements wrapped into ``++if-then-else++`` ones should be simplified.
Note that if the result of the expression is not a boolean but for instance an integer, then double negation should be used for proper conversion.
include::../noncompliant.adoc[]
== Compliant Solution
----
return expression;
----
or
----
return !!expression;
----