mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Let ctx.FormOptionalBool() return optional.Option[bool] (#29461)
just some refactoring bits towards replacing **util.OptionalBool** with **optional.Option[bool]**
This commit is contained in:
@@ -546,7 +546,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
|
||||
ctx.Data["NumTags"], err = db.Count[repo_model.Release](ctx, repo_model.FindReleasesOptions{
|
||||
IncludeDrafts: true,
|
||||
IncludeTags: true,
|
||||
HasSha1: util.OptionalBoolTrue, // only draft releases which are created with existing tags
|
||||
HasSha1: optional.Some(true), // only draft releases which are created with existing tags
|
||||
RepoID: ctx.Repo.Repository.ID,
|
||||
})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user