From 8579b7f7bba5acee1f95364407b0859cd38f4a1a Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 9 Apr 2024 11:21:57 +0200 Subject: [PATCH] Use optional.Some --- models/user/user_repository.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/user/user_repository.go b/models/user/user_repository.go index 24c2482e9d..02109eab16 100644 --- a/models/user/user_repository.go +++ b/models/user/user_repository.go @@ -8,7 +8,7 @@ import ( "fmt" "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "code.gitea.io/gitea/modules/optional" "code.gitea.io/gitea/modules/validation" ) @@ -21,8 +21,8 @@ func CreateFederatedUser(ctx context.Context, user *User, federatedUser *Federat return fmt.Errorf("User is not valid: %v", err) } overwrite := CreateUserOverwriteOptions{ - IsActive: util.OptionalBoolFalse, - IsRestricted: util.OptionalBoolFalse, + IsActive: optional.Some(false), + IsRestricted: optional.Some(false), } // Begin transaction