Skip to content

Commit

Permalink
fix: explicit return statements in GS1.pm (#7083)
Browse files Browse the repository at this point in the history
fix: explicit return statements in GS1.pm
  • Loading branch information
dipietroR committed Jul 20, 2022
1 parent 59a8280 commit fcb4d8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ProductOpener/GS1.pm
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ sub init_csv_fields() {

%seen_csv_fields = ();
@csv_fields = ();
return;
}


Expand All @@ -852,6 +853,7 @@ sub assign_field($$$) {
push @csv_fields, $target_field;
$seen_csv_fields{$target_field} = 1;
}
return;
}


Expand Down Expand Up @@ -1367,6 +1369,7 @@ sub gs1_to_off ($$$) {
}
}
}
return;
}


Expand Down Expand Up @@ -1433,6 +1436,7 @@ sub convert_single_text_property_to_direct_value($) {
}
}
}
return;
}


Expand Down Expand Up @@ -1548,6 +1552,7 @@ sub convert_gs1_json_message_to_off_products_csv($$$) {
}

push @$products_ref, $product_ref;
return;
}


Expand Down Expand Up @@ -1589,6 +1594,7 @@ sub read_gs1_json_file($$$) {
convert_single_text_property_to_direct_value($json_ref);

convert_gs1_json_message_to_off_products_csv($json_ref, $products_ref, $messages_ref);
return;
}


Expand Down Expand Up @@ -1726,6 +1732,7 @@ sub write_off_csv_file($$) {
}

close $filehandle;
return;
}


Expand Down

0 comments on commit fcb4d8e

Please sign in to comment.