diff options
author | Julien Dessaux | 2024-03-24 09:50:52 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-24 10:03:55 +0100 |
commit | fe8d8027b37e6d679804d2c6893abe4608b8bad4 (patch) | |
tree | aa7ac473be00b047d39f9975c0bac1f6abd12ce7 /pkg/files.go | |
parent | chore(promises): make a Status function part of the Promise interface (diff) | |
download | gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.gz gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.bz2 gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.zip |
fix(promises): fixed IfRepaired promises chaining
Diffstat (limited to '')
-rw-r--r-- | pkg/files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/files.go b/pkg/files.go index 366bacc..eb3fa38 100644 --- a/pkg/files.go +++ b/pkg/files.go @@ -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 } |