Skip to content

Commit cb549bd

Browse files
committed
Updated readme, add gitattributes
1 parent a13d929 commit cb549bd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set
2+
* text=auto
3+
4+
# Require Unix line endings
5+
* text eol=lf

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ fastify.listen(3000, (err) => {
4040
if (err) {
4141
fastify.log.error(err)
4242
// Manually close since Fastify did not boot correctly.
43-
fastify.close()
44-
process.exit(1)
43+
fastify.close(err => {
44+
process.exit(1)
45+
})
4546
}
4647

4748
// Initiate Fastify's shutdown procedure so that the plugin will

0 commit comments

Comments
 (0)