]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
code duplication
authorAndreas Gustafsson <source@isc.org>
Wed, 23 May 2001 04:38:04 +0000 (04:38 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 23 May 2001 04:38:04 +0000 (04:38 +0000)
util/check-pullups.pl

index 3e550deac1bfead356bcde34c1c76021614e4007..64826740c417fca5d21f79f8fd57496ec439ee2f 100644 (file)
@@ -43,10 +43,9 @@ my $c1 = readfile($ARGV[0]);
 my $c2 = readfile($ARGV[1]);
 
 foreach my $c (sort {$a <=> $b} keys %$c1) {
-       if ($c1->{$c}->{category} eq "bug" && !exists($c2->{$c})) {
-               print $c1->{$c}->{text};
-       }
-       if ($c1->{$c}->{category} eq "port" && !exists($c2->{$c})) {
+       my $category = $c1->{$c}->{category};
+       if (($category eq "bug" || $category eq "port") &&
+           !exists($c2->{$c})) {
                print $c1->{$c}->{text};
        }
 }