diff --git a/Check.pm b/Check.pm index a9a6d98..ad33c2c 100644 --- a/Check.pm +++ b/Check.pm @@ -179,15 +179,10 @@ sub action $toosmall = 1; } + # Get result my $sizeConsistency = "ANOMALOUS"; my $sizeConsistencyColor = "Tomato"; - - # Get result - if ( $toobig or $toosmall ) { - $sizeConsistency = "ANOMALOUS"; - $sizeConsistencyColor = "Tomato"; - } - else { + if ( not $toobig and not $toosmall ) { $sizeConsistency = "Normal"; $sizeConsistencyColor = "MediumSeaGreen"; }