(stream, state)
| 25481 | } |
| 25482 | |
| 25483 | function finishMaybe(stream, state) { |
| 25484 | var need = needFinish(state); |
| 25485 | if (need) { |
| 25486 | prefinish(stream, state); |
| 25487 | if (state.pendingcb === 0) { |
| 25488 | state.finished = true; |
| 25489 | stream.emit('finish'); |
| 25490 | } |
| 25491 | } |
| 25492 | return need; |
| 25493 | } |
| 25494 | |
| 25495 | function endWritable(stream, state, cb) { |
| 25496 | state.ending = true; |
no test coverage detected