(status, reason = '')
| 380 | } |
| 381 | |
| 382 | const appendRoundRecordIfNeeded = async (status, reason = '') => { |
| 383 | if (roundRecordAppended) { |
| 384 | return; |
| 385 | } |
| 386 | |
| 387 | if (typeof appendAccountRunRecord !== 'function') { |
| 388 | return; |
| 389 | } |
| 390 | |
| 391 | const record = await appendAccountRunRecord(status, null, reason); |
| 392 | if (record) { |
| 393 | roundRecordAppended = true; |
| 394 | } |
| 395 | }; |
| 396 | |
| 397 | try { |
| 398 | deps.throwIfStopped(); |
no test coverage detected