Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: explicit return statements in Ingredients.pm #7097

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/ProductOpener/Ingredients.pm
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ sub add_properties_from_specific_ingredients($) {
}
}
}
return;
}


Expand Down Expand Up @@ -1013,6 +1014,7 @@ sub add_specific_ingredients_from_labels($) {
}
}
}
return;
}


Expand Down Expand Up @@ -2182,6 +2184,7 @@ sub flatten_sub_ingredients($) {
# Delete the sub-ingredients, as they have been pushed at the end of the list
delete $product_ref->{ingredients}[$i]{ingredients};
}
return;
}


Expand Down Expand Up @@ -2284,6 +2287,7 @@ sub compute_ingredients_tags($) {
# ensure $product_ref->{ingredients_n} is last used as an int so that it is not saved as a strings
$product_ref->{ingredients_n} += 0;
}
return;
}


Expand Down Expand Up @@ -2871,6 +2875,7 @@ sub compute_ingredients_percent_estimates($$) {
}

$log->debug("compute_ingredients_percent_estimates - done", { ingredients_ref => $ingredients_ref }) if $log->is_debug();
return;
}


Expand Down Expand Up @@ -3107,6 +3112,7 @@ sub analyze_ingredients($) {

# Uncomment the following line to add an extra field with more data for debugging purposes
#$product_ref->{ingredients_analysis_debug} = $ingredients_analysis_ref;
return;
}


Expand Down Expand Up @@ -5940,6 +5946,7 @@ sub detect_allergens_from_ingredients($) {
$log->debug("detect_allergens_from_ingredients -- found allergen", { allergens => $allergens }) if $log->is_debug();
}
}
return;
}


Expand Down