From cdba25b89e41eacaffd699f5a109a3e15103de5a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 5 Feb 2009 14:30:12 -0800 Subject: ratelimiter: fix perlcritic warnings --- lib/Vyatta/Qos/RateLimiter.pm | 6 ++---- 1 file 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; -- cgit v1.2.3