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 <mic.besace@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent c63687d commit 955c90d

30 files changed

Lines changed: 69 additions & 69 deletions

‎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-
constINT8=0x7f;
16-
constINT16=0x7fff;
17-
constINT32=0x7fffffff;
18-
constUINT8=(INT8*2)+1;
15+
constINT8=0x7f;
16+
constINT16=0x7fff;
17+
constINT32=0x7fffffff;
18+
constUINT8=(INT8*2)+1;
1919
constUINT16=(INT16*2)+1;
2020
constUINT32=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-
constINT8=0x7f;
14-
constINT16=0x7fff;
15-
constINT32=0x7fffffff;
16-
constUINT8=INT8*2;
13+
constINT8=0x7f;
14+
constINT16=0x7fff;
15+
constINT32=0x7fffffff;
16+
constUINT8=INT8*2;
1717
constUINT16=INT16*2;
1818
constUINT32=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-
}elseif(oldHistoryPath){
136+
}elseif(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
case2: // 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
}elseif(c>=65/*A*/&&c<=70/*F*/){
6363
m=c-65/*A*/+10;
6464
}elseif(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
returnline;
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
returnbuff;
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-
consthttp=require('http');
9+
consthttp=require('http');
1010
constweak=require('weak');
1111
constcommon=require('../common');
1212
constassert=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)