Skip to content

Commit 156e237

Browse files
committed
use let instead of var
1 parent 39ee099 commit 156e237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function Request (options) {
9393
})
9494

9595
// we keep both payload and body for compatibility reasons
96-
var payload = options.payload || options.body || null
96+
let payload = options.payload || options.body || null
9797
if (payload && typeof payload !== 'string' && !(typeof payload.resume === 'function') && !Buffer.isBuffer(payload)) {
9898
payload = JSON.stringify(payload)
9999
this.headers['content-type'] = this.headers['content-type'] || 'application/json'

0 commit comments

Comments
 (0)