mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2025-01-07 12:24:07 +01:00
Fix eslint errors
This commit is contained in:
parent
692cbe56d0
commit
a49e935b8f
@ -30,12 +30,8 @@ export default function request(url, config = {}, onlyJsonResponse = true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return baseRequest(apiUrl, requestConfig)
|
return baseRequest(apiUrl, requestConfig)
|
||||||
.then((res) => onlyJsonResponse ? res.json() : // eslint-disable-line no-confusing-arrow
|
.then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
|
||||||
{
|
.catch(err => {
|
||||||
json: res.json(),
|
|
||||||
url: res.url
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
console.error(err)
|
console.error(err)
|
||||||
throw err
|
throw err
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user