Skip to content

Commit 61570cc

Browse files
targosMyles Borins
authored andcommitted
lib,test: remove extra semicolons
PR-URL: #2205 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 2b52b15 commit 61570cc

22 files changed

+27
-27
lines changed

lib/_debugger.js

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)