From 4ad88a72d304a9c0ab417d7a4083f7a22087c7e8 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 21 Mar 2026 21:22:03 -0700 Subject: [PATCH] Fix lint --- routers/api/v1/repo/code/search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/code/search.go b/routers/api/v1/repo/code/search.go index b1953d8b35..3402bb412e 100644 --- a/routers/api/v1/repo/code/search.go +++ b/routers/api/v1/repo/code/search.go @@ -132,9 +132,9 @@ func GlobalSearch(ctx *context.APIContext) { return } - ctx.SetTotalCountHeader(int64(total)) + ctx.SetTotalCountHeader(total) searchResults := structs.CodeSearchResults{ - TotalCount: int64(total), + TotalCount: total, } for _, lang := range languages {