Files
gitea/models
Philip Peterson b0936f4f41
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been cancelled
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
..
2025-02-20 12:39:21 -08:00
2025-04-01 10:14:01 +00:00
2025-03-31 01:53:48 -04:00
2025-05-15 16:28:31 +00:00
2025-04-01 10:14:01 +00:00
2025-03-31 01:53:48 -04:00
2025-04-08 04:15:15 +00:00
2025-04-13 02:24:32 +00:00
2025-03-31 01:53:48 -04:00
2024-12-30 14:35:46 -08:00