Details
-
Technical task
-
Status: Approved
-
Could
-
Resolution: Fixed
-
None
-
None
-
Low
Description
SonarQube:
It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.
Problem:
Inverted comparison.
Solution:
Correcting it.
Where the problem occurs:
Support materials:
- explanation of the problem by SonarQube: https://sonar.openmrs.org/coding_rules#rule_key=squid%3AS1940