summaryrefslogtreecommitdiff
path: root/pkg/commands.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-24 09:50:52 +0100
committerJulien Dessaux2024-03-24 10:03:55 +0100
commitfe8d8027b37e6d679804d2c6893abe4608b8bad4 (patch)
treeaa7ac473be00b047d39f9975c0bac1f6abd12ce7 /pkg/commands.go
parentchore(promises): make a Status function part of the Promise interface (diff)
downloadgonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.gz
gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.bz2
gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.zip
fix(promises): fixed IfRepaired promises chaining
Diffstat (limited to 'pkg/commands.go')
-rw-r--r--pkg/commands.go2
1 files changed, 1 insertions, 1 deletions
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
}