mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Start to migrate from util.OptionalBool to optional.Option[bool] (#29329)
				
					
				
			just create transition helper and migrate two structs
This commit is contained in:
		| @@ -8,7 +8,7 @@ import ( | ||||
| 	"sort" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	"code.gitea.io/gitea/modules/util" | ||||
| 	"code.gitea.io/gitea/modules/optional" | ||||
|  | ||||
| 	"github.com/gobwas/glob" | ||||
| ) | ||||
| @@ -56,7 +56,7 @@ func FindAllMatchedBranches(ctx context.Context, repoID int64, ruleName string) | ||||
| 				Page:     page, | ||||
| 			}, | ||||
| 			RepoID:          repoID, | ||||
| 			IsDeletedBranch: util.OptionalBoolFalse, | ||||
| 			IsDeletedBranch: optional.Some(false), | ||||
| 		}) | ||||
| 		if err != nil { | ||||
| 			return nil, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user