eslint curly code example
Example: 38:7 error Closing curly brace does not appear on the same line as the subsequent block brace-style
if (err.status === 'not found') {
cb({ statusCode: 404 })
return
} else { // <--- now } is on same line as {
cb({ statusCode: 500 })
return
}