From afa636bc749f76aed77380d39269bceecdd879d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 16 Dec 2017 13:30:52 +1300 Subject: Remove unneeded params around "scalar" call Operator precedence allows leaving these out. 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 ); # Named args - if (exists $params{$_[0]} && scalar(@_) % 2 == 0) { + if (exists $params{$_[0]} && scalar @_ % 2 == 0) { %args = validate( @_, { %params }); } -- cgit v0.10-9-g596f