From fe8d8027b37e6d679804d2c6893abe4608b8bad4 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 24 Mar 2024 09:50:52 +0100 Subject: fix(promises): fixed IfRepaired promises chaining --- pkg/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/files.go') 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 } -- cgit v1.2.3