Skip to content

Commit

Permalink
Fix nil dereferencing error (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
odarbelaeze authored Sep 20, 2024
1 parent 4c3d273 commit 4d4cf4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d4cf4a

Please sign in to comment.