diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-01 23:30:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-02 21:09:24 +0800 |
commit | 8c985eb579803692cb696ee0028bd132345cfd8e (patch) | |
tree | 95344c7355e3e75c116f620bc562c4b0306b82a5 /packages/contract-wrappers/src/utils/decorators.ts | |
parent | 3a93c8a6e08666ac6c737e1da363ee04188174a7 (diff) | |
download | dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.gz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.bz2 dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.lz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.xz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.zst dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.zip |
Fix linter issue
Diffstat (limited to 'packages/contract-wrappers/src/utils/decorators.ts')
-rw-r--r-- | packages/contract-wrappers/src/utils/decorators.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/contract-wrappers/src/utils/decorators.ts b/packages/contract-wrappers/src/utils/decorators.ts index d6bf6ec1e..e17246015 100644 --- a/packages/contract-wrappers/src/utils/decorators.ts +++ b/packages/contract-wrappers/src/utils/decorators.ts @@ -1,4 +1,3 @@ -import { RevertReason } from '@0xproject/types'; import * as _ from 'lodash'; import { AsyncMethod, ContractWrappersError, SyncMethod } from '../types'; @@ -46,7 +45,7 @@ const asyncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => { // tslint:disable-next-line:only-arrow-functions descriptor.value = async function(...args: any[]): Promise<any> { try { - const result = await originalMethod.apply(this, args); + const result = await originalMethod.apply(this, args); // tslint:disable-line:no-invalid-this return result; } catch (error) { const transformedError = errorTransformer(error); @@ -73,7 +72,7 @@ const syncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => { // tslint:disable-next-line:only-arrow-functions descriptor.value = function(...args: any[]): any { try { - const result = originalMethod.apply(this, args); + const result = originalMethod.apply(this, args); // tslint:disable-line:no-invalid-this return result; } catch (error) { const transformedError = errorTransformer(error); |