Skip to content

Commit

Permalink
Simplify code (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Aug 17, 2018
1 parent f12feaf commit f51c5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/promisify.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function _gpfInterfacesWrap (iInterfaceImpl, interfaceSpecifier, promise) {
_gpfObjectForEach(interfaceSpecifier.prototype, function (referenceMethod, name) {
promise[name] = function () {
var args = arguments;
return _gpfInterfacesWrap(iInterfaceImpl, interfaceSpecifier, promise.then(function () {
return promise.then(function () {
return _gpfPromisify(iInterfaceImpl[name].apply(iInterfaceImpl, args));
}));
});
};
});
return promise;
Expand Down

0 comments on commit f51c5bf

Please sign in to comment.