summaryrefslogtreecommitdiffstats
path: root/Changes
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-12-16 13:08:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-12-16 13:08:44 +1300
commit40d5fbea30c310004233ef4cd3e570c351c54233 (patch)
tree4e7a77737c9aeb9849c996e86ef44589a072ee85 /Changes
parentc1046bab2e6681f5e4714178d6cc1cd16f067382 (diff)
downloadmonitoring-plugin-perl-40d5fbea30c310004233ef4cd3e570c351c54233.tar.gz
Change arg() param type detect to key exists check
Use the parameter label definitions from commit c1046ba to simplify the block of code that checks whether the first argument passed to arg() is one of the known param keys, rather than using a regular expression with alternating expression. This is more compact, may be marginally faster, and will make adding new parameters to this method more straightforward in future, avoiding the situation corrected in commit 4aa2aee.
Diffstat (limited to 'Changes')
0 files changed, 0 insertions, 0 deletions