gitea/routers/api/v1/admin
Philip Peterson b0936f4f41
Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544)
This PR changes the `opts` argument in `SearchUsers()` to be passed by
value instead of by pointer, as its mutations do not escape the function
scope and are not used elsewhere. This simplifies reasoning about the
function and avoids unnecessary pointer usage.

This insight emerged during an initial attempt to refactor
`RenderUserSearch()`, which currently intermixes multiple concerns.

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
2025-05-27 19:36:02 +00:00
..
adopt.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
cron.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
email.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
hooks.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
org.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
repo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
runners.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
user.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
user_badge.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00