diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 14:30:12 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 14:30:12 -0800 |
commit | cdba25b89e41eacaffd699f5a109a3e15103de5a (patch) | |
tree | 241ca3a0c9329ae46a5e61f846463a5bf2455ced /lib | |
parent | be3391e31f08da35dd1a7468cc2bd3d2fdfb7313 (diff) | |
download | vyatta-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.pm | 6 |
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; |