diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-06 21:48:29 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-06 21:48:29 +0800 |
commit | 321e0765cb3cee989f5869992209cbd9d69c1c3d (patch) | |
tree | b3d02d7cced11adf07c843595ef283173f9df46e /src/utils/assert.ts | |
parent | 403ec236fffb0ed565e7c933d3608b554c007613 (diff) | |
download | dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar.gz dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar.bz2 dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar.lz dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar.xz dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.tar.zst dexon-0x-contracts-321e0765cb3cee989f5869992209cbd9d69c1c3d.zip |
avoid newline issues by putting the assertion message on a single line
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r-- | src/utils/assert.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index f4d653ffb..4dc6945a2 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -34,8 +34,9 @@ export const assert = { async isSenderAddressAvailableAsync(web3Wrapper: Web3Wrapper, variableName: string, senderAddressHex: string): Promise<void> { const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailableAsync(senderAddressHex); - assert.assert(isSenderAddressAvailable, `Specified ${variableName} ${senderAddressHex} isn't available \ - through the supplied web3 instance`); + assert.assert(isSenderAddressAvailable, + `Specified ${variableName} ${senderAddressHex} isn't available through the supplied web3 instance`, + ); }, async isUserAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise<void> { const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); |