Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: reason error report

kumfo88ebefbd227d
diff --git a/internal/controller/reason_controller.go b/internal/controller/reason_controller.go
index a4a39003..5cf42d7a 100644
--- a/internal/controller/reason_controller.go
+++ b/internal/controller/reason_controller.go
@@ -35,8 +35,5 @@ func (rc *ReasonController) Reasons(ctx *gin.Context) {
return
}
reasons, err := rc.reasonService.GetReasons(ctx, *req)
- if err != nil {
- err = nil
- }
handler.HandleResponse(ctx, err, reasons)
}