summaryrefslogtreecommitdiff
path: root/app/domain/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/domain/user.go')
-rw-r--r--app/domain/user.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/domain/user.go b/app/domain/user.go
index a6adfa8..52cd780 100644
--- a/app/domain/user.go
+++ b/app/domain/user.go
@@ -10,11 +10,7 @@ type User struct {
}
func NewUser(options ...x.Configure[*User]) *User {
- user := &User{}
- for _, option := range options {
- option(user)
- }
- return user
+ return New[*User](options...)
}
func (u *User) GetID() ID {