Commit 843a4bbf authored by Nicolai Kamenzky's avatar Nicolai Kamenzky
Browse files

Merge pull request #42 from servel333/patch-1

Simplified unnecessary loop
parents 7d657a9f 40c95cd2
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -140,15 +140,9 @@ function expose(methodToExpose, exposeAs) {

}

_.forEach([
        ['then'],
        ['catch'],
        ['finally']
    ],
    function (args) {
        expose.apply(undefined, args);
    }
);
expose('then');
expose('catch');
expose('finally');

request.Request.prototype.promise = function RP$promise() {
    markPromiseInUse(this);