Skip to content

Commit

Permalink
refactor: break instead of using goto
Browse files Browse the repository at this point in the history
  • Loading branch information
lavafroth committed Jul 13, 2023
1 parent f9a1501 commit 78e3d95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ func MakeRequest(c *fasthttp.Client, url string, maxRetries uint, timeout uint,
req.SetRequestURI(url)
respBody, err = doReq(c, req, timeout)
if err == nil {
goto done
break
}
}
done:
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 78e3d95

Please sign in to comment.