fix(promises): fixed IfRepaired promises chaining
This commit is contained in:
parent
eb9d5f861a
commit
fe8d8027b3
4 changed files with 5 additions and 5 deletions
|
@ -64,7 +64,7 @@ func (f *FilePromise) Template(contents any) *FilePromise {
|
|||
|
||||
// We want to satisfy the Promise interface
|
||||
func (f *FilePromise) IfRepaired(p ...Promise) Promise {
|
||||
f.chain = p
|
||||
f.chain = append(f.chain, p...)
|
||||
return f
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue