Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit a502204

Browse files
committed
make lint happy
making choices based on fairly arbitrary line length limits feels bad man. Adding eslint-disables also feels bad. But I acknowledge it's good to limit line length, in general. I guess.
1 parent 388fd70 commit a502204

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/dataunion/DataUnion.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,11 @@ export class DataUnion {
624624
if (!payForTransport) {
625625
// expect someone else to do the transport for us (corresponds to dataUnion.freeWithdraw=true)
626626
if (waitUntilTransportIsComplete) {
627-
log(`Waiting for balance ${balanceBefore.toString()} to change (poll every ${pollingIntervalMs}ms, timeout after ${retryTimeoutMs}ms)`)
628-
await until(async () => !(await getBalanceFunc()).eq(balanceBefore), retryTimeoutMs, pollingIntervalMs)
629-
.catch((e) => { throw e.message.startsWith('Timeout') ? new Error(`Timeout: Bridge did not transport withdraw message as expected. Fix: DataUnion.transportMessage("${messageHash}")`) : e })
627+
log(`Waiting for balance=${balanceBefore.toString()} change (poll every ${pollingIntervalMs}ms, timeout after ${retryTimeoutMs}ms)`)
628+
await until(async () => !(await getBalanceFunc()).eq(balanceBefore), retryTimeoutMs, pollingIntervalMs).catch((e) => {
629+
const msg = `Timeout: Bridge did not transport withdraw message as expected. Fix: DataUnion.transportMessage("${messageHash}")`
630+
throw e.message.startsWith('Timeout') ? new Error(msg) : e
631+
})
630632
return null
631633
}
632634

0 commit comments

Comments
 (0)