summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index 1dbfd98..6654aba 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -72,10 +72,7 @@ sub matchRules {
sub _getPercentRate {
my ( $rate, $speed ) = @_;
-
- if ( !defined $rate ) {
- return; # leave rate undef
- }
+ return unless $rate; # no rate defined;
# Rate might be a percentage of speed
if ( $rate =~ /%$/ ) {