removed superfluous check

This commit is contained in:
gutmet 2020-09-18 23:48:41 +02:00
parent f3297655ef
commit cba6e63238

View File

@ -247,7 +247,7 @@ func pollStatus(client *http.Client, mediaId ObjectID) {
log := func(err error) { optLogFatal("pollStatus "+string(mediaId), err) } log := func(err error) { optLogFatal("pollStatus "+string(mediaId), err) }
succeeded := false succeeded := false
var error TwitterError 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)) body := get(client, UPLOAD_ENDPOINT+PollStatusParameters(mediaId))
var response PollStatusResponse var response PollStatusResponse
err := json.Unmarshal(body, &response) err := json.Unmarshal(body, &response)