Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(index): async flow control (#405)
* refactor(index): async flow control * refactor(index): factor up all html minification * refactor(index): remove readCallbackEnd * refactor(index): factor up all undefined `page` checks * refactor(index): review nits - viewDecorator: remove spurious defined check - decorateReply: capitalize getHeader check - minify definition: null instead of false when not enabled - getRequestedPath: remove spurious optional chaining - use optional chaining for layout checks - avoid “assign to `x` then return `x`” pattern * test(ejs): add test for invalid template Closes #404 Add a regression test for previously incorrect behavior: when the `fastify` instance had an `onError` added, errors thrown by renderer resulted in server crash. * refactor(index): avoid reading the same file concurrently --------- Co-authored-by: uzlopak <[email protected]>
- Loading branch information