replace oneif statement with if expression in TimeType.compare
remove unnecessary lambda function in CMakeHandler.purge
remove unnecessary else statement used after return in TimeType.__le__.
Rationale
Code readability
A lambda that calls a function without modifying any of its parameters is unnecessary. It is preferred to use the function cache.get directly as the lambda function calls the same function without any modifications.
In the case of an else block after return, the statements can be shifted out of else to improve code readability.
Change Description
The purpose of this PR is to:
if
statement withif
expression inTimeType.compare
CMakeHandler.purge
else
statement used afterreturn
inTimeType.__le__
.Rationale
cache.get
directly as the lambda function calls the same function without any modifications.else
block afterreturn
, the statements can be shifted out ofelse
to improve code readability.Testing/Review Recommendations
void
Future Work
void