Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ec093c

Browse filesBrowse files
targossilverwind
authored andcommitted
lib,test: remove extra semicolons
PR-URL: #2205 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 162e16a commit 0ec093c
Copy full SHA for 0ec093c
Expand file treeCollapse file tree

24 files changed

+29
-29
lines changed
Open diff view settings
Collapse file

‎lib/_debugger.js‎

Copy file name to clipboardExpand all lines: lib/_debugger.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) {
574574
});
575575
cb(null, mirror);
576576
}
577-
};
577+
}
578578
});
579579
return;
580580
} else if (handle.type === 'function') {
@@ -800,7 +800,7 @@ function Interface(stdin, stdout, args) {
800800
} else {
801801
self.repl.context[key] = fn;
802802
}
803-
};
803+
}
804804

805805
// Copy all prototype methods in repl context
806806
// Setup them as getters if possible
Collapse file

‎lib/events.js‎

Copy file name to clipboardExpand all lines: lib/events.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function listenerCount(type) {
434434
}
435435

436436
return 0;
437-
};
437+
}
438438

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

‎lib/net.js‎

Copy file name to clipboardExpand all lines: lib/net.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ function createServerHandle(address, port, addressType, fd) {
11831183
}
11841184

11851185
return handle;
1186-
};
1186+
}
11871187
exports._createServerHandle = createServerHandle;
11881188

11891189

Collapse file

‎lib/tls.js‎

Copy file name to clipboardExpand all lines: lib/tls.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function convertProtocols(protocols) {
4646
}, 0);
4747

4848
return buff;
49-
};
49+
}
5050

5151
exports.convertNPNProtocols = function(protocols, out) {
5252
// If protocols is Array - translate it into buffer
Collapse file

‎test/common.js‎

Copy file name to clipboardExpand all lines: test/common.js
+1-1Lines 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.
Collapse file

‎test/debugger/helper-debugger-repl.js‎

Copy file name to clipboardExpand all lines: test/debugger/helper-debugger-repl.js
+1-1Lines 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

Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawnsync-input.js
+1-1Lines 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);
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-http-1.0-keep-alive.js
+1-1Lines 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);
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-stream-big-packet.js
+2-2Lines 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) {
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-stream-pipe-without-listenerCount.js
+1-1Lines 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() {}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.