From 14511b320186c8eb4a2905a348fed533bb9a4814 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 28 Aug 2024 00:14:30 +0200 Subject: chore(gonf): change Promise() methods return type to be more specific --- pkg/custom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/custom.go') diff --git a/pkg/custom.go b/pkg/custom.go index 9b4ca3d..bc1a531 100644 --- a/pkg/custom.go +++ b/pkg/custom.go @@ -21,7 +21,7 @@ func (c *CustomPromise) IfRepaired(p ...Promise) Promise { return c } -func (c *CustomPromise) Promise() Promise { +func (c *CustomPromise) Promise() *CustomPromise { customPromises = append(customPromises, c) return c } -- cgit v1.2.3