title: Closure expression is unused swift 3
body: <blockquote>
    <p>Closure expression is unused Error</p>
  </blockquote>
  
  <p>Can anyone solve the problem and how can I make it correctly and how can I use <code>if else</code> statement in the code without problem?</p>
  
  <pre><code>func storeToCoreData(product_Name : String,product_Brand : String,original_Price : String,discount_Price : String,userPhotoString : String,catagory : String, urlCoreData : String){
      if  catagory == "Tools" {
              switch (urlCoreData){
              case "Mens_shirt":
              coreVariables.mens_Shirt.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
          break
              case "Mens_sweatshirt" :
              coreVariables.mens_SweatShirt.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
          break
              case "Mens_tshirt":
              coreVariables.mens_Tshirt.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
          break
              default:
                  break
          }
      } else {
          switch (urlCoreData){
              case "Women_kurta" :
              coreVariables.womens_Kurta.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
          break
              case "Women_saree" :
              coreVariables.womens_Saree.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
          break
              case "Women_tops":
              coreVariables.womens_Tops.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
                  break
              default:
                  break
          }
      } else {
          switch (urlCoreData){
          case "first" :
              coreVariables.first.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
              break
          case "second" :
              coreVariables.second.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
              break
          case "third":
              coreVariables.third.StoreProduct(product_Name: product_Name, product_Brand: product_Brand, product_Price: original_Price, product_Discount: discount_Price, product_Image: userPhotoString)
              break
          default:
              break
      }
  }
  </code></pre>