Skip to content

Commit

Permalink
Remove unnecessary nested promise in GDAX loadAllOrders()
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Nov 24, 2017
1 parent a6def08 commit 6fe9f26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/exchanges/gdax/GDAXExchangeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,7 @@ export class GDAXExchangeAPI implements PublicExchangeAPI, AuthenticatedExchange
}
});
};
return new Promise((resolve, reject) => {
return loop(null).then((orders) => {
return resolve(orders);
}, reject);
});
return loop(null);
}

loadBalances(): Promise<Balances> {
Expand Down

0 comments on commit 6fe9f26

Please sign in to comment.