chore(gonf): change Promise() methods return type to be more specific

This commit is contained in:
Julien Dessaux 2024-08-28 00:14:30 +02:00
parent e7572a1382
commit 14511b3201
Signed by: adyxax
GPG key ID: F92E51B86E07177E
8 changed files with 7 additions and 28 deletions

View file

@ -46,7 +46,7 @@ func (u *UserPromise) IfRepaired(p ...Promise) Promise {
return u
}
func (u *UserPromise) Promise() Promise {
func (u *UserPromise) Promise() *UserPromise {
users = append(users, u)
return u
}