Skip to content

Commit 235f588

Browse files
mweberxyzUzlopak
andauthored
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]>
1 parent a8cf590 commit 235f588

File tree

2 files changed

+237
-437
lines changed

2 files changed

+237
-437
lines changed

0 commit comments

Comments
 (0)