fix(promises): fixed IfRepaired promises chaining
This commit is contained in:
parent
eb9d5f861a
commit
fe8d8027b3
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue