From 8b34929ef968bde8d820e9cd251af3b0ec7cf2da Mon Sep 17 00:00:00 2001 From: rajdeep11 Date: Wed, 9 Oct 2024 16:04:36 +0530 Subject: [PATCH] removing the check for no record found, throwing error. Change-Id: Ib2d00ca778ff96d833f4e7c4823b82e36dd6a8e2 Signed-off-by: rajdeep11 --- apis/mmes_apis.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apis/mmes_apis.go b/apis/mmes_apis.go index 482811e..693caed 100644 --- a/apis/mmes_apis.go +++ b/apis/mmes_apis.go @@ -156,17 +156,6 @@ func (m *MmeApiHandler) GetModelInfo(cont *gin.Context) { }) return } - //to check record not found - if len(modelInfos)==0{ - statusCode := http.StatusNotFound - errMessage := fmt.Sprintf("Record not found with modelName: %s", modelName) - logging.ERROR("Record not found, send status code: ", statusCode) - cont.JSON(statusCode, gin.H{ - "code": statusCode, - "message": errMessage, - }) - return - } cont.JSON(http.StatusOK, gin.H{ "modelinfoList":modelInfos, -- 2.16.6