Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 19b4d58

Browse files
committed
clean
1 parent 7ef603e commit 19b4d58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/request-api.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function onRes (buffer, cb) {
2828
const isJson = res.headers['content-type'] === 'application/json'
2929

3030
if (res.statusCode >= 400 || !res.statusCode) {
31-
let error = new Error(`Server responded with ${res.statusCode}`)
31+
const error = new Error(`Server responded with ${res.statusCode}`)
3232

3333
Wreck.read(res, {json: true}, (err, payload) => {
3434
if (err) {
@@ -43,8 +43,6 @@ function onRes (buffer, cb) {
4343
return
4444
}
4545

46-
// console.log('stream:', stream, ' chunked:', chunkedObjects)
47-
4846
if (stream && !buffer) return cb(null, res)
4947

5048
if (chunkedObjects) {

0 commit comments

Comments
 (0)