gitea/routers/web/admin
Philip Peterson c5e78fc7ad
Do not mutate incoming options to SearchRepositoryByName (#34553)
Similar to #34544, this PR changes the `opts` argument in
`SearchRepositoryByName()` 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-06-02 17:33:25 +00:00
..
admin.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
admin_test.go Make public URL generation configurable (#34250) 2025-04-22 06:49:37 +08:00
applications.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
auths.go Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
config.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
diagnosis.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
emails.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
hooks.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
main_test.go
notice.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
orgs.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
packages.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
perftrace.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
queue.go Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
queue_tester.go
repos.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
runners.go Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
stacktrace.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
users.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
users_test.go