1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

migrate some more "OptionalBool" to "Option[bool]" (#29479)

just some refactoring bits towards replacing **util.OptionalBool** with
**optional.Option[bool]**

---------

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
6543
2024-02-29 19:52:49 +01:00
committed by GitHub
parent c7dcb58b1d
commit f6656181e4
23 changed files with 183 additions and 174 deletions

View File

@@ -276,7 +276,7 @@ func ViewUser(ctx *context.Context) {
OwnerID: u.ID,
OrderBy: db.SearchOrderByAlphabetically,
Private: true,
Collaborate: util.OptionalBoolFalse,
Collaborate: optional.Some(false),
})
if err != nil {
ctx.ServerError("SearchRepository", err)