summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-05 14:29:42 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-05 14:29:42 -0800
commitbe3391e31f08da35dd1a7468cc2bd3d2fdfb7313 (patch)
tree5bd3eea473d7b0c5fb5b40df76d9701ac5617c6f
parent601c07dc8d6ca7387880ef5d62191e24106d0e9c (diff)
downloadvyatta-cfg-qos-be3391e31f08da35dd1a7468cc2bd3d2fdfb7313.tar.gz
vyatta-cfg-qos-be3391e31f08da35dd1a7468cc2bd3d2fdfb7313.zip
Fairqueue: fix perlcritic warnings
-rw-r--r--lib/Vyatta/Qos/FairQueue.pm6
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;