diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 14:29:42 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 14:29:42 -0800 |
commit | be3391e31f08da35dd1a7468cc2bd3d2fdfb7313 (patch) | |
tree | 5bd3eea473d7b0c5fb5b40df76d9701ac5617c6f /lib | |
parent | 601c07dc8d6ca7387880ef5d62191e24106d0e9c (diff) | |
download | vyatta-cfg-qos-be3391e31f08da35dd1a7468cc2bd3d2fdfb7313.tar.gz vyatta-cfg-qos-be3391e31f08da35dd1a7468cc2bd3d2fdfb7313.zip |
Fairqueue: fix perlcritic warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Qos/FairQueue.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/FairQueue.pm b/lib/Vyatta/Qos/FairQueue.pm index 2ef89ed..327a32b 100644 --- a/lib/Vyatta/Qos/FairQueue.pm +++ b/lib/Vyatta/Qos/FairQueue.pm @@ -58,11 +58,9 @@ sub isChanged { $config->setLevel("qos-policy fair-queue $name"); foreach my $attr ('hash-interval', 'queue-limit') { - if ($config->isChanged($attr)) { - return $attr - } + return $attr if ($config->isChanged($attr)); } - return undef; # false + return; # false } 1; |