Swap statement
This commit is contained in:
parent
be02e2746f
commit
6a193d4246
1 changed files with 3 additions and 3 deletions
|
@ -199,11 +199,11 @@ func fetchAndParseCustomAPI(
|
|||
var data *customAPIResponseData
|
||||
data, localErr = fetchCustomAPIRequest(ctx, req)
|
||||
mu.Lock()
|
||||
if localErr != nil && err == nil {
|
||||
if localErr == nil {
|
||||
subData[key] = data
|
||||
} else if err == nil {
|
||||
err = localErr
|
||||
cancel()
|
||||
} else {
|
||||
subData[key] = data
|
||||
}
|
||||
mu.Unlock()
|
||||
}()
|
||||
|
|
Loading…
Add table
Reference in a new issue