mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 00:32:05 -04:00
simplify code
if statement is always true at this point, so remove it.
This commit is contained in:
parent
bf82700078
commit
6e64973a44
1 changed files with 1 additions and 4 deletions
|
|
@ -1179,10 +1179,7 @@ multiply (char *str)
|
|||
|
||||
val = strtod (str, &endptr);
|
||||
if ((val == 0.0) && (endptr == str)) {
|
||||
if(multiplier != 1) {
|
||||
die(STATE_UNKNOWN, _("multiplier set (%.1f), but input is not a number: %s"), multiplier, str);
|
||||
}
|
||||
return str;
|
||||
die(STATE_UNKNOWN, _("multiplier set (%.1f), but input is not a number: %s"), multiplier, str);
|
||||
}
|
||||
|
||||
if(verbose>2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue