refactor: replace var with const / let (#14866)
This commit is contained in:
parent
b42493e6e6
commit
c61db523c7
26 changed files with 195 additions and 201 deletions
|
@ -1,8 +1,8 @@
|
|||
var fs = require('fs')
|
||||
var https = require('https')
|
||||
var path = require('path')
|
||||
const fs = require('fs')
|
||||
const https = require('https')
|
||||
const path = require('path')
|
||||
|
||||
var server = https.createServer({
|
||||
const server = https.createServer({
|
||||
key: fs.readFileSync(path.resolve(__dirname, 'tls.key.pem')),
|
||||
cert: fs.readFileSync(path.resolve(__dirname, 'tls.cert.pem'))
|
||||
}, (req, res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue