(reply, payload)
| 541 | } |
| 542 | |
| 543 | function onSendHook (reply, payload) { |
| 544 | if (reply[kRouteContext].onSend !== null) { |
| 545 | onSendHookRunner( |
| 546 | reply[kRouteContext].onSend, |
| 547 | reply.request, |
| 548 | reply, |
| 549 | payload, |
| 550 | wrapOnSendEnd |
| 551 | ) |
| 552 | } else { |
| 553 | onSendEnd(reply, payload) |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | function wrapOnSendEnd (err, request, reply, payload) { |
| 558 | if (err != null) { |
no test coverage detected