Skip to content

Commit f661927

Browse files
targosMyles Borins
authored and
Myles Borins
committed
lib,test: remove extra semicolons
PR-URL: #2205 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent e408e94 commit f661927

22 files changed

+27
-27
lines changed

lib/_debugger.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
573573
});
574574
cb(null, mirror);
575575
}
576-
};
576+
}
577577
});
578578
return;
579579
} else if (handle.type === 'function') {
@@ -798,7 +798,7 @@ function Interface(stdin, stdout, args) {
798798
} else {
799799
self.repl.context[key] = fn;
800800
}
801-
};
801+
}
802802

803803
// Copy all prototype methods in repl context
804804
// Setup them as getters if possible

lib/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function listenerCount(type) {
417417
}
418418

419419
return 0;
420-
};
420+
}
421421

422422
// About 1.5x faster than the two-arg version of Array#splice().
423423
function spliceOne(list, index) {

lib/net.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ function createServerHandle(address, port, addressType, fd) {
11861186
}
11871187

11881188
return handle;
1189-
};
1189+
}
11901190
exports._createServerHandle = createServerHandle;
11911191

11921192

test/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function leakedGlobals() {
337337
leaked.push(val);
338338

339339
return leaked;
340-
};
340+
}
341341
exports.leakedGlobals = leakedGlobals;
342342

343343
// Turn this off if the test should not check for global leaks.

test/debugger/helper-debugger-repl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function addTest(input, output) {
103103
} else {
104104
quit();
105105
}
106-
};
106+
}
107107
expected.push({input: input, lines: output, callback: next});
108108
}
109109

test/parallel/test-child-process-spawnsync-input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var ret;
2323
function checkSpawnSyncRet(ret) {
2424
assert.strictEqual(ret.status, 0);
2525
assert.strictEqual(ret.error, undefined);
26-
};
26+
}
2727

2828
function verifyBufOutput(ret) {
2929
checkSpawnSyncRet(ret);

test/parallel/test-http-1.0-keep-alive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function check(tests) {
122122
current++;
123123
if (ctx.expectClose) return;
124124
conn.removeListener('close', onclose);
125-
conn.removeListener('data', ondata);;
125+
conn.removeListener('data', ondata);
126126
connected();
127127
}
128128
conn.on('data', ondata);

test/parallel/test-stream-big-packet.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var passed = false;
88

99
function PassThrough() {
1010
stream.Transform.call(this);
11-
};
11+
}
1212
util.inherits(PassThrough, stream.Transform);
1313
PassThrough.prototype._transform = function(chunk, encoding, done) {
1414
this.push(chunk);
@@ -17,7 +17,7 @@ PassThrough.prototype._transform = function(chunk, encoding, done) {
1717

1818
function TestStream() {
1919
stream.Transform.call(this);
20-
};
20+
}
2121
util.inherits(TestStream, stream.Transform);
2222
TestStream.prototype._transform = function(chunk, encoding, done) {
2323
if (!passed) {

test/parallel/test-stream-pipe-without-listenerCount.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ r.on('error', common.mustCall(noop));
1616
w.on('error', common.mustCall(noop));
1717
r.pipe(w);
1818

19-
function noop() {};
19+
function noop() {}

test/parallel/test-stream-writable-change-default-encoding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var util = require('util');
88
function MyWritable(fn, options) {
99
stream.Writable.call(this, options);
1010
this.fn = fn;
11-
};
11+
}
1212

1313
util.inherits(MyWritable, stream.Writable);
1414

test/parallel/test-stream-writable-decoded-encoding.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var util = require('util');
88
function MyWritable(fn, options) {
99
stream.Writable.call(this, options);
1010
this.fn = fn;
11-
};
11+
}
1212

1313
util.inherits(MyWritable, stream.Writable);
1414

@@ -17,7 +17,7 @@ MyWritable.prototype._write = function(chunk, encoding, callback) {
1717
callback();
1818
};
1919

20-
;(function decodeStringsTrue() {
20+
(function decodeStringsTrue() {
2121
var m = new MyWritable(function(isBuffer, type, enc) {
2222
assert(isBuffer);
2323
assert.equal(type, 'object');
@@ -28,7 +28,7 @@ MyWritable.prototype._write = function(chunk, encoding, callback) {
2828
m.end();
2929
})();
3030

31-
;(function decodeStringsFalse() {
31+
(function decodeStringsFalse() {
3232
var m = new MyWritable(function(isBuffer, type, enc) {
3333
assert(!isBuffer);
3434
assert.equal(type, 'string');

test/parallel/test-stream2-base64-single-char-read-end.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ src._read = function(n) {
1717
src.push(new Buffer('1'));
1818
src.push(null);
1919
});
20-
};
20+
}
2121
};
2222

2323
dst._write = function(chunk, enc, cb) {

test/parallel/test-stream3-pause-then-read.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function read100() {
4242
function readn(n, then) {
4343
console.error('read %d', n);
4444
expectEndingData -= n;
45-
;(function read() {
45+
(function read() {
4646
var c = r.read(n);
4747
if (!c)
4848
r.once('readable', read);

test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ server.listen(common.PORT, common.localhostIPv4, function() {
3939
if (nbClientsEnded === 2) {
4040
server.close();
4141
}
42-
};
42+
}
4343

4444
const client1 = net.connect({ port: common.PORT });
4545
client1.on('end', addEndedClient);

test/parallel/test-tls-npn-server-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function startTest() {
8585

8686
callback();
8787
});
88-
};
88+
}
8989

9090
connectClient(clientsOptions[0], function() {
9191
connectClient(clientsOptions[1], function() {

test/parallel/test-tls-sni-option.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function startTest() {
146146
else
147147
connectClient(i + 1, callback);
148148
}
149-
};
149+
}
150150

151151
connectClient(0, function() {
152152
server.close();

test/parallel/test-tls-sni-server-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function startTest() {
103103
// Continue
104104
start();
105105
});
106-
};
106+
}
107107

108108
start();
109109
}

test/parallel/test-url.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,6 @@ var throws = [
15691569
];
15701570
for (var i = 0; i < throws.length; i++) {
15711571
assert.throws(function() { url.format(throws[i]); }, TypeError);
1572-
};
1572+
}
15731573
assert(url.format('') === '');
15741574
assert(url.format({}) === '');

test/parallel/test-zlib-flush-drain.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ deflater.flush(function(err) {
3333
});
3434

3535
deflater.on('drain', function() {
36-
drainCount++;;
36+
drainCount++;
3737
});
3838

3939
process.once('exit', function() {

test/pummel/test-tls-server-large-request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var options = {
2424
function Mediator() {
2525
stream.Writable.call(this);
2626
this.buf = '';
27-
};
27+
}
2828
util.inherits(Mediator, stream.Writable);
2929

3030
Mediator.prototype._write = function write(data, enc, cb) {

test/sequential/test-child-process-fork-getconnections.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (process.argv[2] === 'child') {
1111
process.on('message', function(m, socket) {
1212
function sendClosed(id) {
1313
process.send({ id: id, status: 'closed'});
14-
};
14+
}
1515

1616
if (m.cmd === 'new') {
1717
assert(socket);
@@ -82,7 +82,7 @@ if (process.argv[2] === 'child') {
8282
});
8383
sent++;
8484
child.send({ id: i, cmd: 'close' });
85-
};
85+
}
8686

8787
let closeEmitted = false;
8888
server.on('close', function() {

test/sequential/test-tcp-wrap-listen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ server.onconnection = function(err, client) {
6565
writeCount++;
6666
console.log('write ' + writeCount);
6767
maybeCloseClient();
68-
};
68+
}
6969

7070
sliceCount++;
7171
} else {

0 commit comments

Comments
 (0)