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) { function asPromise(opts) {
var promise = new pinkiePromise(function (resolve, reject) { return new pinkiePromise(function (resolve, reject) {
asCallback(opts, function (err, data, response) { asCallback(opts, function (err, data, response) {
response.body = data; response.body = data;
@ -127,8 +127,6 @@ function asPromise(opts) {
resolve(response); resolve(response);
}); });
}); });
return promise;
} }
function asStream(opts) { function asStream(opts) {

Loading…
Cancel
Save