I was trying to make a c# script in unity, while the script says 'foodManager.foodEat(GameObject)': not all code paths return a value in line 61 (Marked with ** in the start and end of the line in the end of the script) about the IEnumerator.
What's the problem here and how do I solve it?
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FoodManager : MonoBehaviour
{
    public bool[] isFull;
    public GameObject[] slots;
    public GameObject[] itemNames;
    public GameObject[] itemImages;
    public GameObject[] itemAmounts;
    public GameObject foodObject;
    public string[] foodNames;
    public Sprite[] foodImages;
    public Sprite[] foodHalfImages;
    public GameObject foodPanel;
    void Update()
    {
        for(int i = 0; i < 6; i++)
        {
            if (isFull[i] == true)
                slots[i].SetActive(true);
            if (isFull[i] == false)
                slots[i].SetActive(false);
        }
    }
    private void addItem(int max, string itemName, GameObject itemImage, int addingAmount, string foodName)
    {
        for (int j = 0; j < max; j++)
        {
            if (isFull[j] == true && itemNames[j].GetComponent<Text>().text == itemName)
                itemAmounts[j].GetComponent<Text>().text = (int.Parse(itemAmounts[j].GetComponent<Text>().text) + addingAmount).ToString();
            if (isFull[j] == false)
            {
                isFull[j] = true;
                itemNames[j].GetComponent<Text>().text = itemName;
                itemAmounts[j].GetComponent<Text>().text = addingAmount.ToString();
                itemImages[j].GetComponent<Image>().sprite = foodImages[j];
                break;
            }
        }
    }
    public void foodButtonsBehavior(int a)
    {
        if(a >= 0 && a < 6)
        {
            StartCoroutine(foodEat(slots[a]));
        }
        if(a == 6) //exit Button
            foodPanel.SetActive(false);
    }
    **public IEnumerator foodEat(GameObject slot)**
    {
        foodPanel.SetActive(false);
    }
}
I want to use IEnumenator because I want to add WaitForSeconds() to the script, but I didn't add yet. Please help me solve this, it's very important!