mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: remove unused vars from http/https tests
Remove handful of variables that are assigned but never used. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: https://github.com/nodejs/node/pull/7598 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
This commit is contained in:
parent
2bd89421d5
commit
bc5b89f9ca
5 changed files with 0 additions and 12 deletions
|
@ -11,10 +11,7 @@ var net = require('net');
|
|||
|
||||
// Create a TCP server
|
||||
var srv = net.createServer(function(c) {
|
||||
var data = '';
|
||||
c.on('data', function(d) {
|
||||
data += d.toString('utf8');
|
||||
|
||||
c.write('HTTP/1.1 101\r\n');
|
||||
c.write('hello: world\r\n');
|
||||
c.write('connection: upgrade\r\n');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue