]> git.donarmstrong.com Git - bugscan.git/commitdiff
fix syntax error and typo in make_index_from_stubs.pl
authorDon Armstrong <don@donarmstrong.com>
Wed, 19 Mar 2014 21:23:45 +0000 (14:23 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 19 Mar 2014 21:23:45 +0000 (14:23 -0700)
t/test_spool/versions/indices/make_index_from_stubs.pl

index 5d56e14558447b3272a6958102e6eb6566f0554c..dbda1b002aa6d317aa9509e303230d5d7232d2c2 100755 (executable)
@@ -44,13 +44,13 @@ sub populate_index{
             @stub_results = @{$stub_results[0]};
         }
         if ((@stub_results % 2) == 0 and
-            not ref($stub_results[0]) and
+            not ref($stub_results[0])
            ) {
             %stub_results_to_add = @stub_results;
         } else {
             for my $stub_result (@stub_results) {
-                next unless ref($stub_results);
-                next unless ref($stub_results) eq 'HASH';
+                next unless ref($stub_result);
+                next unless ref($stub_result) eq 'HASH';
                 %stub_results_to_add = (%stub_results_to_add,
                                         %{$stub_result});
             }