From 4d4cf4a3edd90c61c087ad498b9d72eb52d30914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Arbel=C3=A1ez-Echeverri?= Date: Fri, 20 Sep 2024 20:53:26 +0100 Subject: [PATCH] Fix nil dereferencing error (#4) --- ecs/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs/client.go b/ecs/client.go index 2d1eda9..2b1a3ad 100644 --- a/ecs/client.go +++ b/ecs/client.go @@ -104,7 +104,7 @@ func (client *Client) WaitUntilGood(ctx context.Context, service *types.Service, } var deadline time.Duration - if timeout == nil { + if timeout != nil { deadline = *timeout } else { deadline = defaultTimeout