From 321e0765cb3cee989f5869992209cbd9d69c1c3d Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 6 Jun 2017 15:48:29 +0200 Subject: avoid newline issues by putting the assertion message on a single line --- src/utils/assert.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils') 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 { 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 { const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); -- cgit v1.2.3