How to shrink this code and merge the if and else condition

后端 未结 0 1511
北荒
北荒 2020-11-22 00:45
    if category == 0 {
        rows, err := h.Repo.GetAllLatestProducts(c.Context())
        if err != nil {
            return c.Status(fiber.StatusInternalServerEr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题