Skip to content

Commit 6416718

Browse files
vrdetim
authored and
tim
committed
Fix eslint errors
1 parent 4f48f17 commit 6416718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function request(url, config = {}) {
3030
}
3131

3232
return baseRequest(apiUrl, requestConfig)
33-
.then(res => res.json())
33+
.then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
3434
.catch(err => {
3535
console.error(err)
3636
throw err

0 commit comments

Comments
 (0)