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

@ -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
}