mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: fix style issues after eslint update
Replace var keyword with const or let. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
49ea0a29d0
commit
d4c7370ea8
110 files changed
+939
-892
No files matched your search
@@ -8,12 +8,12 @@ if (!common.hasCrypto) {
|
||||
}
|
||||
var https = require('https');
|
||||
|
||||
var fs = require('fs'),
|
||||
options = {
|
||||
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
|
||||
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
|
||||
},
|
||||
httpsServer = https.createServer(options, reqHandler);
|
||||
const fs = require('fs');
|
||||
const options = {
|
||||
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
|
||||
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
|
||||
};
|
||||
const httpsServer = https.createServer(options, reqHandler);
|
||||
|
||||
function reqHandler(req, res) {
|
||||
console.log('Got request: ' + req.headers.host + ' ' + req.url);
|
||||
|
||||
Reference in new issue
Block a user