mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-12-28 15:47:50 +01:00
Fix eslint errors
This commit is contained in:
parent
4f48f1768e
commit
6416718102
@ -30,7 +30,7 @@ export default function request(url, config = {}) {
|
||||
}
|
||||
|
||||
return baseRequest(apiUrl, requestConfig)
|
||||
.then(res => res.json())
|
||||
.then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
|
||||
.catch(err => {
|
||||
console.error(err)
|
||||
throw err
|
||||
|
Loading…
Reference in New Issue
Block a user