mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-31 03:36:30 +08:00
Code refactoring
Code refactoring
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user