mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add readability-simplify-boolean-expr
* Add readability-simplify-boolean-expr * Fixes based on review
This commit is contained in:
@@ -59,9 +59,7 @@ bool RimCellFilterInterval::isIncluded( size_t val ) const
|
||||
|
||||
size_t tmp = val - m_minIncludeVal;
|
||||
|
||||
if ( m_valid && ( tmp % m_step == 0 ) ) return true;
|
||||
|
||||
return false;
|
||||
return m_valid && ( tmp % m_step == 0 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -134,12 +134,7 @@ void RimEclipsePropertyFilter::rangeValues( double* lower, double* upper ) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEclipsePropertyFilter::isCategorySelectionActive() const
|
||||
{
|
||||
if ( m_resultDefinition->hasCategoryResult() && m_useCategorySelection )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return m_resultDefinition->hasCategoryResult() && m_useCategorySelection;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -213,12 +213,7 @@ void RimGeoMechPropertyFilter::updateActiveState()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimGeoMechPropertyFilter::isActiveAndHasResult()
|
||||
{
|
||||
if ( this->isActive() && this->resultDefinition->hasResult() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return this->isActive() && this->resultDefinition->hasResult();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user