(stream, state)
| 25457 | return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; |
| 25458 | } |
| 25459 | function callFinal(stream, state) { |
| 25460 | stream._final(function (err) { |
| 25461 | state.pendingcb--; |
| 25462 | if (err) { |
| 25463 | stream.emit('error', err); |
| 25464 | } |
| 25465 | state.prefinished = true; |
| 25466 | stream.emit('prefinish'); |
| 25467 | finishMaybe(stream, state); |
| 25468 | }); |
| 25469 | } |
| 25470 | function prefinish(stream, state) { |
| 25471 | if (!state.prefinished && !state.finalCalled) { |
| 25472 | if (typeof stream._final === 'function') { |
nothing calls this directly
no test coverage detected