mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 21:27:13 +00:00
Use optional.Some
This commit is contained in:
parent
97343470bc
commit
8579b7f7bb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue