Code refactoring

Code refactoring
This commit is contained in:
Alexey Khit
2023-03-01 18:03:11 +03:00
parent c70c3a58f1
commit c2cdf60ffc
7 changed files with 34 additions and 17 deletions

View File

@@ -84,8 +84,7 @@ func Do(req *http.Request) (*http.Response, error) {
req.Header.Set("Authorization", header)
res, err = client.Do(req)
if err != nil {
if res, err = client.Do(req); err != nil {
return nil, err
}
}