aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 06:44:29 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:37 +0800
commit7b8d9193e2f2c812e94951dfc85db1bda0f27056 (patch)
treecb5d308f1f4cebfcf44fe6fafc7e65e0a4114508 /packages/assert/src
parent74633126ceb5ad5e73c0c0ec6dc766594bb77ae6 (diff)
downloaddexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar.gz
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar.bz2
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar.lz
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar.xz
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.tar.zst
dexon-sol-tools-7b8d9193e2f2c812e94951dfc85db1bda0f27056.zip
Auto-fix linter errors in other mono-repo packages
Diffstat (limited to 'packages/assert/src')
-rw-r--r--packages/assert/src/index.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts
index eb224223f..92bcf6f03 100644
--- a/packages/assert/src/index.ts
+++ b/packages/assert/src/index.ts
@@ -1,11 +1,11 @@
+import {
+ Schema,
+ SchemaValidator,
+} from '@0xproject/json-schemas';
import BigNumber from 'bignumber.js';
import * as ethereum_address from 'ethereum-address';
import * as _ from 'lodash';
import * as validUrl from 'valid-url';
-import {
- SchemaValidator,
- Schema,
-} from '@0xproject/json-schemas';
const HEX_REGEX = /^0x[0-9A-F]*$/i;
@@ -62,7 +62,7 @@ export const assert = {
this.assert(_.isBoolean(value), this.typeAssertionMessage(variableName, 'boolean', value));
},
isWeb3Provider(variableName: string, value: any): void {
- const isWeb3Provider = _.isFunction((value as any).send) || _.isFunction((value as any).sendAsync);
+ const isWeb3Provider = _.isFunction((value).send) || _.isFunction((value).sendAsync);
this.assert(isWeb3Provider, this.typeAssertionMessage(variableName, 'Web3.Provider', value));
},
doesConformToSchema(variableName: string, value: any, schema: Schema): void {