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/services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/services.go') diff --git a/pkg/services.go b/pkg/services.go index 658cd0e..7e4f114 100644 --- a/pkg/services.go +++ b/pkg/services.go @@ -41,8 +41,8 @@ type ServicePromise struct { status Status } -func (s *ServicePromise) IfRepaired(ps ...Promise) Promise { - s.chain = ps +func (s *ServicePromise) IfRepaired(p ...Promise) Promise { + s.chain = append(s.chain, p...) return s } -- cgit v1.2.3