Browse Source

Remove unnecessary variable

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
12c3cf53db
  1. 4
      index.js

4
index.js

@ -114,7 +114,7 @@ function asCallback(opts, cb) {
}
function asPromise(opts) {
var promise = new pinkiePromise(function (resolve, reject) {
return new pinkiePromise(function (resolve, reject) {
asCallback(opts, function (err, data, response) {
response.body = data;
@ -127,8 +127,6 @@ function asPromise(opts) {
resolve(response);
});
});
return promise;
}
function asStream(opts) {

Loading…
Cancel
Save