mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 10:26:14 +01:00 
			
		
		
		
	remove util.OptionalBool and related functions (#29513)
and migrate affected code _last refactoring bits to replace **util.OptionalBool** with **optional.Option[bool]**_
This commit is contained in:
		| @@ -15,6 +15,7 @@ import ( | ||||
| 	packages_model "code.gitea.io/gitea/models/packages" | ||||
| 	"code.gitea.io/gitea/modules/json" | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/optional" | ||||
| 	packages_module "code.gitea.io/gitea/modules/packages" | ||||
| 	swift_module "code.gitea.io/gitea/modules/packages/swift" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| @@ -433,7 +434,7 @@ func LookupPackageIdentifiers(ctx *context.Context) { | ||||
| 		Properties: map[string]string{ | ||||
| 			swift_module.PropertyRepositoryURL: url, | ||||
| 		}, | ||||
| 		IsInternal: util.OptionalBoolFalse, | ||||
| 		IsInternal: optional.Some(false), | ||||
| 	}) | ||||
| 	if err != nil { | ||||
| 		apiError(ctx, http.StatusInternalServerError, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user