Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde authored and tim committed Nov 23, 2017
1 parent 4f48f17 commit 6416718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6416718

Please sign in to comment.