From cba6e63238e7d3201790d1dc57ce270ccc47219b Mon Sep 17 00:00:00 2001 From: gutmet Date: Fri, 18 Sep 2020 23:48:41 +0200 Subject: [PATCH] removed superfluous check --- drivel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivel.go b/drivel.go index 49cad93..f23e857 100644 --- a/drivel.go +++ b/drivel.go @@ -247,7 +247,7 @@ func pollStatus(client *http.Client, mediaId ObjectID) { log := func(err error) { optLogFatal("pollStatus "+string(mediaId), err) } succeeded := false var error TwitterError - for try := 0; try < 6 && !succeeded; try = try + 1 { + for try := 0; try < 6; try = try + 1 { body := get(client, UPLOAD_ENDPOINT+PollStatusParameters(mediaId)) var response PollStatusResponse err := json.Unmarshal(body, &response)