From ac892720dff0b5fe256b29f032cef229635be703 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 27 Feb 2026 13:34:37 +0100 Subject: [PATCH] fix: suppress dupl lint for Search handler The public Search and admin List handlers share structure but use different types (SearchParams/AdminSearchParams, MarketSummary/ AdminMarketSummary). This is intentional, not a refactoring target. --- backend/internal/domain/market/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/domain/market/handler.go b/backend/internal/domain/market/handler.go index 9a23884..4536791 100644 --- a/backend/internal/domain/market/handler.go +++ b/backend/internal/domain/market/handler.go @@ -17,7 +17,7 @@ func NewHandler(service *Service) *Handler { return &Handler{service: service} } -func (h *Handler) Search(c *gin.Context) { +func (h *Handler) Search(c *gin.Context) { //nolint:dupl // similar structure to AdminHandler.List but different types var params SearchParams if err := c.ShouldBindQuery(¶ms); err != nil { apiErr := apierror.BadRequest("invalid_params", err.Error())