Simplify get result for size consistency

master
Heuzef 5 years ago
parent 0f588d19da
commit 56edbe1031
  1. 9
      Check.pm

@ -179,15 +179,10 @@ sub action
$toosmall = 1; $toosmall = 1;
} }
# Get result
my $sizeConsistency = "<strong>ANOMALOUS</strong>"; my $sizeConsistency = "<strong>ANOMALOUS</strong>";
my $sizeConsistencyColor = "Tomato"; my $sizeConsistencyColor = "Tomato";
if ( not $toobig and not $toosmall ) {
# Get result
if ( $toobig or $toosmall ) {
$sizeConsistency = "<strong>ANOMALOUS</strong>";
$sizeConsistencyColor = "Tomato";
}
else {
$sizeConsistency = "Normal"; $sizeConsistency = "Normal";
$sizeConsistencyColor = "MediumSeaGreen"; $sizeConsistencyColor = "MediumSeaGreen";
} }

Loading…
Cancel
Save