From 43f6e95fb1dbe9921b2bcf547b673d87bb4a4bb7 Mon Sep 17 00:00:00 2001 From: Jiri Vrba Date: Mon, 4 Mar 2024 14:46:54 +0100 Subject: [PATCH] Fix: condition flow Signed-off-by: Jiri Vrba --- src/pkg/reg/adapter/dockerhub/adapter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/reg/adapter/dockerhub/adapter.go b/src/pkg/reg/adapter/dockerhub/adapter.go index 00d636510281..d635d2ead16c 100644 --- a/src/pkg/reg/adapter/dockerhub/adapter.go +++ b/src/pkg/reg/adapter/dockerhub/adapter.go @@ -152,8 +152,8 @@ func (a *adapter) limitAwareDo(method string, path string, body io.Reader) (*htt time.Sleep(dur) log.Info("Sleep finished, resuming operation") } - return clientResp, clientErr } + return clientResp, clientErr } var dur = time.Duration(0) seconds, err := strconv.ParseInt(clientResp.Header.Get("retry-after"), 10, 64)