refactor: replace var with const / let (#14866)

This commit is contained in:
Milan Burda 2018-09-29 01:17:00 +02:00 committed by Samuel Attard
parent b42493e6e6
commit c61db523c7
26 changed files with 195 additions and 201 deletions

View file

@ -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) => {

View file

@ -4,7 +4,7 @@ const utils = require('./lib/utils')
const electronPath = utils.getAbsoluteElectronExec()
var child = cp.spawn(electronPath, process.argv.slice(2), { stdio: 'inherit' })
const child = cp.spawn(electronPath, process.argv.slice(2), { stdio: 'inherit' })
child.on('close', (code) => process.exit(code))
const handleTerminationSignal = (signal) =>