summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-12-16 13:30:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-12-16 13:30:52 +1300
commitafa636bc749f76aed77380d39269bceecdd879d2 (patch)
tree254acfaa96b347c3b23cb41dcb98c05e1329b6db
parentc3f2a7cd7313868166ba205e9eff2b8be6a36ea4 (diff)
downloadmonitoring-plugin-perl-afa636bc749f76aed77380d39269bceecdd879d2.tar.gz
Remove unneeded params around "scalar" call
Operator precedence allows leaving these out.
-rw-r--r--lib/Monitoring/Plugin/Getopt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm
index 048b0ef..b5a9ab4 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]} && scalar @_ % 2 == 0) {
396 %args = validate( @_, { %params }); 396 %args = validate( @_, { %params });
397 } 397 }
398 398