diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-12-16 14:09:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-12-16 14:09:16 +1300 |
commit | da6fe80e84a20aaf405a89bd0203d9ce1abc097d (patch) | |
tree | 39d2fa19f8869c18bda07495703ba166ad79cb8c | |
parent | 6518f384cc20561ddc0df32414a714164dd2eb95 (diff) | |
download | monitoring-plugin-perl-da6fe80.tar.gz |
Remove "scalar" call entirely
Context with the lhs of the == operator forces this into scalar context
anyway, making this call redundant.
-rw-r--r-- | lib/Monitoring/Plugin/Getopt.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm index 65c872f..c8033d0 100644 --- a/lib/Monitoring/Plugin/Getopt.pm +++ b/lib/Monitoring/Plugin/Getopt.pm | |||
@@ -392,7 +392,7 @@ sub arg | |||
392 | ); | 392 | ); |
393 | 393 | ||
394 | # Named args | 394 | # Named args |
395 | if (exists $params{$_[0]} && scalar @_ % 2 == 0) { | 395 | if (exists $params{$_[0]} && @_ % 2 == 0) { |
396 | %args = validate( @_, \%params ); | 396 | %args = validate( @_, \%params ); |
397 | } | 397 | } |
398 | 398 | ||