]> git.donarmstrong.com Git - bugscan.git/blobdiff - t/test_spool/versions/indices/make_index_from_stubs.pl
fix syntax error and typo in make_index_from_stubs.pl
[bugscan.git] / t / test_spool / versions / indices / make_index_from_stubs.pl
old mode 100644 (file)
new mode 100755 (executable)
index 5d56e14..dbda1b0
@@ -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});
             }