Refactor controllers to remove unnecessary return statements after JSON responses

- Removed redundant return statements in various controller functions across the dashboard module.
- This change improves code readability and maintains the same functionality.
This commit is contained in:
mlogclub
2026-05-23 22:23:44 +08:00
parent e9d2e41f9e
commit 1852f9df8b
32 changed files with 0 additions and 188 deletions
@@ -33,7 +33,6 @@ func KnowledgeRetrievePostDebugSearch(ctx *gin.Context) {
return
}
httpx.WriteJSON(ctx, resp)
return
}
func KnowledgeRetrievePostDebugAnswer(ctx *gin.Context) {
@@ -55,7 +54,6 @@ func KnowledgeRetrievePostDebugAnswer(ctx *gin.Context) {
return
}
httpx.WriteJSON(ctx, resp)
return
}
func KnowledgeRetrievePostBuild(ctx *gin.Context) {
@@ -95,5 +93,4 @@ func KnowledgeRetrievePostBuild(ctx *gin.Context) {
}
httpx.WriteJSON(ctx, web.JsonErrorMsg("documentId或faqId不能为空"))
return
}