mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
Fix eslint errors
This commit is contained in:
parent
d0f4342f6f
commit
2fd3fcf8ce
@ -30,12 +30,8 @@ export default function request(url, config = {}, onlyJsonResponse = true) {
|
||||
}
|
||||
|
||||
return baseRequest(apiUrl, requestConfig)
|
||||
.then((res) => onlyJsonResponse ? res.json() : // eslint-disable-line no-confusing-arrow
|
||||
{
|
||||
json: res.json(),
|
||||
url: res.url
|
||||
})
|
||||
.catch((err) => {
|
||||
.then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
|
||||
.catch(err => {
|
||||
console.error(err)
|
||||
throw err
|
||||
})
|
||||
|
@ -29,7 +29,7 @@ export default function makeTransferTransaction(
|
||||
metadata,
|
||||
outputs,
|
||||
...outputIndices
|
||||
) {
|
||||
) {
|
||||
const inputs = outputIndices.map((outputIndex) => {
|
||||
const fulfilledOutput = unspentTransaction.outputs[outputIndex]
|
||||
const transactionLink = {
|
||||
|
Loading…
Reference in New Issue
Block a user