From 0ba0d2f8d1645f9ed79ca8dfc15e0bb49f5782ea Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 24 Aug 2017 10:02:45 +0200 Subject: Remove redundant else's --- src/contract_wrappers/token_registry_wrapper.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/contract_wrappers/token_registry_wrapper.ts') diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts index 7a88d329d..693131200 100644 --- a/src/contract_wrappers/token_registry_wrapper.ts +++ b/src/contract_wrappers/token_registry_wrapper.ts @@ -56,9 +56,8 @@ export class TokenRegistryWrapper extends ContractWrapper { const addressIfExists = await tokenRegistryContract.getTokenAddressBySymbol.call(symbol); if (addressIfExists === constants.NULL_ADDRESS) { return undefined; - } else { - return addressIfExists; } + return addressIfExists; } public async getTokenAddressByNameIfExistsAsync(name: string): Promise { assert.isString('name', name); @@ -66,9 +65,8 @@ export class TokenRegistryWrapper extends ContractWrapper { const addressIfExists = await tokenRegistryContract.getTokenAddressByName.call(name); if (addressIfExists === constants.NULL_ADDRESS) { return undefined; - } else { - return addressIfExists; } + return addressIfExists; } public async getTokenBySymbolIfExistsAsync(symbol: string): Promise { assert.isString('symbol', symbol); -- cgit