aboutsummaryrefslogtreecommitdiffstats
path: root/models/git/commit_status_test.go
diff options
context:
space:
mode:
authorPhilip Peterson <1326208+philip-peterson@users.noreply.github.com>2025-06-02 10:33:25 -0700
committerGitHub <noreply@github.com>2025-06-02 17:33:25 +0000
commitc5e78fc7addd29b8949883134bc0d5339f64341e (patch)
tree7e488c423e4e3bf85ecb724e682291bf0b7ec630 /models/git/commit_status_test.go
parentf48c0135a611bd8e59b4262c9d2514bda6bb91c1 (diff)
downloadgitea-c5e78fc7addd29b8949883134bc0d5339f64341e.tar.gz
gitea-c5e78fc7addd29b8949883134bc0d5339f64341e.zip
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>
Diffstat (limited to 'models/git/commit_status_test.go')
0 files changed, 0 insertions, 0 deletions