Skip to content

Commit 955c90d

Browse files
Trottevanlucas
authored andcommitted
benchmark,test,lib: remove extra spaces
In preparation for stricter linting, remove extra spaces. PR-URL: #6645 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent c63687d commit 955c90d

30 files changed

+69
-69
lines changed

benchmark/buffers/buffer-write.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ var bench = common.createBenchmark(main, {
1212
millions: [1]
1313
});
1414

15-
const INT8 = 0x7f;
16-
const INT16 = 0x7fff;
17-
const INT32 = 0x7fffffff;
18-
const UINT8 = (INT8 * 2) + 1;
15+
const INT8 = 0x7f;
16+
const INT16 = 0x7fff;
17+
const INT32 = 0x7fffffff;
18+
const UINT8 = (INT8 * 2) + 1;
1919
const UINT16 = (INT16 * 2) + 1;
2020
const UINT32 = INT32;
2121

benchmark/buffers/dataview-set.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ var bench = common.createBenchmark(main, {
1010
millions: [1]
1111
});
1212

13-
const INT8 = 0x7f;
14-
const INT16 = 0x7fff;
15-
const INT32 = 0x7fffffff;
16-
const UINT8 = INT8 * 2;
13+
const INT8 = 0x7f;
14+
const INT16 = 0x7fff;
15+
const INT32 = 0x7fffffff;
16+
const UINT8 = INT8 * 2;
1717
const UINT16 = INT16 * 2;
1818
const UINT32 = INT32 * 2;
1919

lib/internal/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function setupHistory(repl, historyPath, oldHistoryPath, ready) {
133133
`the new one i.e., ${historyPath} and is empty.\nUsing it as is.\n`);
134134
repl._refreshLine();
135135

136-
} else if (oldHistoryPath) {
136+
} else if (oldHistoryPath) {
137137
// Grab data from the older pre-v3.0 JSON NODE_REPL_HISTORY_FILE format.
138138
repl._writeToOutput(
139139
'\nConverting old JSON repl history to line-separated history.\n' +

lib/path.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ const win32 = {
779779
end = i;
780780
break;
781781
}
782-
} else {
782+
} else {
783783
// We saw the first non-path separator
784784
matchedSlash = false;
785785
}
@@ -1335,7 +1335,7 @@ const posix = {
13351335
end = i;
13361336
break;
13371337
}
1338-
} else {
1338+
} else {
13391339
// We saw the first non-path separator
13401340
matchedSlash = false;
13411341
}

lib/querystring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ QueryString.unescapeBuffer = function(s, decodeSpaces) {
5858
case 2: // Second hex digit
5959
state = 0;
6060
if (c >= 48/*0*/ && c <= 57/*9*/) {
61-
m = c - 48/*0*/;
61+
m = c - 48/*0*/;
6262
} else if (c >= 65/*A*/ && c <= 70/*F*/) {
6363
m = c - 65/*A*/ + 10;
6464
} else if (c >= 97/*a*/ && c <= 102/*f*/) {

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class LineParser {
156156

157157
this.shouldFail = this.shouldFail ||
158158
((!this._literal && lastChar === '\\') ||
159-
(this._literal && lastChar !== '\\'));
159+
(this._literal && lastChar !== '\\'));
160160

161161
return line;
162162
}

lib/tls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function convertProtocols(protocols) {
5050
return buff;
5151
}
5252

53-
exports.convertNPNProtocols = function(protocols, out) {
53+
exports.convertNPNProtocols = function(protocols, out) {
5454
// If protocols is Array - translate it into buffer
5555
if (Array.isArray(protocols)) {
5656
protocols = convertProtocols(protocols);

test/addons/buffer-free-callback/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ check(64, 1, 0);
2222
check(97, 1, 0);
2323

2424
// Buffers can be unaligned
25-
check(64, 8, 0);
25+
check(64, 8, 0);
2626
check(64, 16, 0);
27-
check(64, 8, 1);
27+
check(64, 8, 1);
2828
check(64, 16, 1);
29-
check(97, 8, 1);
29+
check(97, 8, 1);
3030
check(97, 16, 1);
31-
check(97, 8, 3);
31+
check(97, 8, 3);
3232
check(97, 16, 3);
3333

3434
// Empty ArrayBuffer does not allocate data, worth checking

test/gc/test-http-client-connaborted.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function serverHandler(req, res) {
66
res.connection.destroy();
77
}
88

9-
const http = require('http');
9+
const http = require('http');
1010
const weak = require('weak');
1111
const common = require('../common');
1212
const assert = require('assert');

test/parallel/test-buffer-alloc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ Buffer.from(Buffer.allocUnsafe(0), 0, 0);
10231023
[ 'utf9',
10241024
'utf-7',
10251025
'Unicode-FTW',
1026-
'new gnu gun' ].forEach(function(enc) {
1026+
'new gnu gun' ].forEach(function(enc) {
10271027
assert.equal(Buffer.isEncoding(enc), false);
10281028
});
10291029

0 commit comments

Comments
 (0)