removed superfluous check
This commit is contained in:
parent
f3297655ef
commit
cba6e63238
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user