mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-23 01:32:03 -07:00
fix(linting): Updating linting dependencies and fixing linting issues
This commit is contained in:
+3
-3
@@ -100,7 +100,7 @@ app.set('views', path.join(__dirname, 'views'))
|
||||
app.set('view engine', 'jade')
|
||||
|
||||
// Mount the docs
|
||||
app.use('/docs', express.static(`${__dirname}/../docs`))
|
||||
app.use('/docs', express.static(`${__dirname.toString()}/../docs`))
|
||||
|
||||
// Log each request to the console with IP addresses.
|
||||
// app.use(logger("dev"))
|
||||
@@ -285,11 +285,11 @@ function onError (error) {
|
||||
case 'EACCES':
|
||||
console.error(`${bind} requires elevated privileges`)
|
||||
process.exit(1)
|
||||
// break
|
||||
break
|
||||
case 'EADDRINUSE':
|
||||
console.error(`${bind} is already in use`)
|
||||
process.exit(1)
|
||||
// break
|
||||
break
|
||||
default:
|
||||
throw error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user