summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-05 14:30:12 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-05 14:30:12 -0800
commitcdba25b89e41eacaffd699f5a109a3e15103de5a (patch)
tree241ca3a0c9329ae46a5e61f846463a5bf2455ced /lib
parentbe3391e31f08da35dd1a7468cc2bd3d2fdfb7313 (diff)
downloadvyatta-cfg-qos-cdba25b89e41eacaffd699f5a109a3e15103de5a.tar.gz
vyatta-cfg-qos-cdba25b89e41eacaffd699f5a109a3e15103de5a.zip
ratelimiter: fix perlcritic warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/Vyatta/Qos/RateLimiter.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/RateLimiter.pm b/lib/Vyatta/Qos/RateLimiter.pm
index e9e29e7..f7585e6 100644
--- a/lib/Vyatta/Qos/RateLimiter.pm
+++ b/lib/Vyatta/Qos/RateLimiter.pm
@@ -62,11 +62,9 @@ sub isChanged {
$config->setLevel("qos-policy rate-limit $name");
foreach my $attr ('bandwidth', 'burst', 'latency') {
- if ($config->isChanged($attr)) {
- return $attr
- }
+ return $attr if ($config->isChanged($attr));
}
- return undef; # false
+ return; # false
}
1;