fix(promises): fixed IfRepaired promises chaining

This commit is contained in:
Julien Dessaux 2024-03-24 09:50:52 +01:00
parent eb9d5f861a
commit fe8d8027b3
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 5 additions and 5 deletions

View file

@ -41,8 +41,8 @@ type ServicePromise struct {
status Status
}
func (s *ServicePromise) IfRepaired(ps ...Promise) Promise {
s.chain = ps
func (s *ServicePromise) IfRepaired(p ...Promise) Promise {
s.chain = append(s.chain, p...)
return s
}