whitespace cleaned up

This commit is contained in:
tpltnt
2022-10-26 16:53:23 +02:00
parent c92cd9c090
commit b7d540e5f7

View File

@@ -27,14 +27,14 @@ module.exports = (app) => {
var credentials = {key: privateKey, cert: certificate}
server = https.createServer(credentials, app)
} catch (err) {
if (err.code === 'ENOENT') {
console.log("no TLS certificate at", err.path)
var http = require('http')
server = http.createServer(app)
} else {
throw err
}
}
if (err.code === 'ENOENT') {
console.log("no TLS certificate at", err.path)
var http = require('http')
server = http.createServer(app)
} else {
throw err
}
}
}
return server