From f7f4b6da8d165cd1450734d8bd37717a8fb5cdde Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 14 Dec 2017 17:12:18 +0100 Subject: Fix a conditional --- packages/0x.js/test/utils/fill_scenarios.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'packages/0x.js/test') diff --git a/packages/0x.js/test/utils/fill_scenarios.ts b/packages/0x.js/test/utils/fill_scenarios.ts index bcaa63c78..7275684a6 100644 --- a/packages/0x.js/test/utils/fill_scenarios.ts +++ b/packages/0x.js/test/utils/fill_scenarios.ts @@ -29,9 +29,7 @@ export class FillScenarios { public async initTokenBalancesAsync() { const web3Wrapper = (this.zeroEx as any)._web3Wrapper as Web3Wrapper; for (const token of this.tokens) { - if (token.symbol === 'WETH') { - // _.noop - } else if (token.symbol !== 'ZRX') { + if (token.symbol !== 'ZRX' && token.symbol !== 'WETH') { const contractInstance = web3Wrapper.getContractInstance( artifacts.DummyTokenArtifact.abi, token.address, ); @@ -41,8 +39,6 @@ export class FillScenarios { from: this.coinbase, }); await this.zeroEx.awaitTransactionMinedAsync(txHash); - } else { - // no-op } } } -- cgit