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/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/commands.go') diff --git a/pkg/commands.go b/pkg/commands.go index df42919..5403e5f 100644 --- a/pkg/commands.go +++ b/pkg/commands.go @@ -42,7 +42,7 @@ type CommandPromise struct { } func (c *CommandPromise) IfRepaired(p ...Promise) Promise { - c.chain = p + c.chain = append(c.chain, p...) return c } -- cgit v1.2.3