From 468a20c9ea0dda89376f638f4ff30804046b7fef Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 10 Oct 2017 11:48:05 +0300 Subject: Remove unused check --- src/utils/exchange_transfer_simulator.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/exchange_transfer_simulator.ts b/src/utils/exchange_transfer_simulator.ts index ad265821d..71a9ed212 100644 --- a/src/utils/exchange_transfer_simulator.ts +++ b/src/utils/exchange_transfer_simulator.ts @@ -104,9 +104,7 @@ export class ExchangeTransferSimulator extends BalanceAndProxyAllowanceLazyStore } await this.decreaseProxyAllowanceAsync(tokenAddress, from, amountInBaseUnits); await this.decreaseBalanceAsync(tokenAddress, from, amountInBaseUnits); - if (!_.isUndefined(to)) { - await this.increaseBalanceAsync(tokenAddress, to, amountInBaseUnits); - } + await this.increaseBalanceAsync(tokenAddress, to, amountInBaseUnits); } private async decreaseProxyAllowanceAsync(tokenAddress: string, userAddress: string, amountInBaseUnits: BigNumber.BigNumber): Promise { -- cgit v1.2.3