aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 03:40:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:37 +0800
commitc453099f6badd1d7b41d9458a2ffb5da381b437f (patch)
tree0e9d92fb187fa1ea9beb065ad228f0d4bb6009bb /packages/0x.js/src/utils
parent08569dbe6cadc2dd93a3195f4a6967dc34e5ffba (diff)
downloaddexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar.gz
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar.bz2
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar.lz
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar.xz
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.tar.zst
dexon-sol-tools-c453099f6badd1d7b41d9458a2ffb5da381b437f.zip
Fix linter issues
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r--packages/0x.js/src/utils/exchange_transfer_simulator.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/exchange_transfer_simulator.ts b/packages/0x.js/src/utils/exchange_transfer_simulator.ts
index 308ef06db..cadded224 100644
--- a/packages/0x.js/src/utils/exchange_transfer_simulator.ts
+++ b/packages/0x.js/src/utils/exchange_transfer_simulator.ts
@@ -81,7 +81,7 @@ export class ExchangeTransferSimulator {
this.store.setBalance(tokenAddress, userAddress, balance.minus(amountInBaseUnits));
}
private throwValidationError(failureReason: FailureReason, tradeSide: TradeSide,
- transferType: TransferType): Promise<never> {
+ transferType: TransferType): never {
const errMsg = ERR_MSG_MAPPING[failureReason][tradeSide][transferType];
throw new Error(errMsg);
}