mirror of
https://github.com/hydra-synth/hydra.git
synced 2025-12-14 10:50:00 +01:00
whitespace cleaned up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user