1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2025-02-14 21:10:32 +01:00

Fix eslint errors

This commit is contained in:
vrde 2017-07-05 17:13:05 +02:00
parent 692cbe56d0
commit a49e935b8f
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D
4 changed files with 13 additions and 17 deletions

View File

@ -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
}) })

View File

@ -29,7 +29,7 @@ export default function makeTransferTransaction(
metadata, metadata,
outputs, outputs,
...outputIndices ...outputIndices
) { ) {
const inputs = outputIndices.map((outputIndex) => { const inputs = outputIndices.map((outputIndex) => {
const fulfilledOutput = unspentTransaction.outputs[outputIndex] const fulfilledOutput = unspentTransaction.outputs[outputIndex]
const transactionLink = { const transactionLink = {