diff options
author | 6543 <6543@obermui.de> | 2024-02-29 19:52:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 18:52:49 +0000 |
commit | f6656181e4a07d6c415927220efa2077d509f7c6 (patch) | |
tree | 27d195c32a09091ea73dcd22b71f6dd5512162fc /routers/web/shared | |
parent | c7dcb58b1d96970959a5c8ac8d3955e4b7d027df (diff) | |
download | gitea-f6656181e4a07d6c415927220efa2077d509f7c6.tar.gz gitea-f6656181e4a07d6c415927220efa2077d509f7c6.zip |
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>
Diffstat (limited to 'routers/web/shared')
-rw-r--r-- | routers/web/shared/user/header.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go index 2253b8840d..51b04e0613 100644 --- a/routers/web/shared/user/header.go +++ b/routers/web/shared/user/header.go @@ -16,6 +16,7 @@ import ( "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/gitrepo" "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/optional" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/services/context" @@ -114,7 +115,7 @@ func LoadHeaderCount(ctx *context.Context) error { Actor: ctx.Doer, OwnerID: ctx.ContextUser.ID, Private: ctx.IsSigned, - Collaborate: util.OptionalBoolFalse, + Collaborate: optional.Some(false), IncludeDescription: setting.UI.SearchRepoDescription, }) if err != nil { |