app/src/main/java/com/github/siela1915/bootcamp/AutocompleteApi/IngredientAutocomplete.java
Method getNutritionFromIngredient
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void getNutritionFromIngredient(int id, Ingredient ingredient, Map<Integer, Boolean> finishedMap, UploadCallback callback){
//System.out.println(service.getNutrition(id, ingredient.getUnit().getValue(), API_KEY).request().url().toString());
//To be able to get the nutrition correctly for a given unit, we need a naming convention for the units which I am not sure how to do
//TODO give the users possible options of units once he chooses an ingredient?