1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-06-30 21:52:11 +02:00

Merge branch 'greenkeeper/eslint-4.1.1'

This commit is contained in:
vrde 2017-07-05 17:58:21 +02:00
commit 197ece2264
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D
5 changed files with 14 additions and 18 deletions

View File

@ -48,7 +48,7 @@
"babel-preset-latest": "^6.22.0",
"babel-runtime": "^6.22.0",
"cross-env": "^5.0.1",
"eslint": "^3.14.1",
"eslint": "^4.1.1",
"eslint-config-ascribe": "^3.0.4",
"eslint-plugin-import": "^2.2.0",
"husky": "^0.14.0",

View File

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

View File

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