Skip to content

Commit 69aa44f

Browse files
committed
lint: fix whitespace issues
1 parent b9baf19 commit 69aa44f

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

lib/Connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ Connection.prototype.connect = function connect(options, callback) {
103103

104104
var connection = this;
105105
this._protocol.on('data', function(data) {
106-
connection._socket.write(data);
106+
connection._socket.write(data);
107107
});
108108
this._socket.on('data', function(data) {
109109
connection._protocol.write(data);
110110
});
111111
this._protocol.on('end', function() {
112-
connection._socket.end();
112+
connection._socket.end();
113113
});
114114
this._socket.on('end', function(err) {
115115
connection._protocol.end();

lib/protocol/packets/RowDataPacket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function typeCast(field, parser, timeZone, supportBigNumbers, bigNumberStrings,
6262
case Types.NEWDATE:
6363
var dateString = parser.parseLengthCodedString();
6464
if (dateStrings) {
65-
return dateString;
65+
return dateString;
6666
}
6767
var dt;
6868

test/integration/connection/test-type-casting.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ var tests = [
3939
{type: 'text', insert: 'Hello World'},
4040
{type: 'point', insertRaw: 'POINT(1.2,-3.4)', expect: {x:1.2, y:-3.4}, deep: true},
4141
{type: 'point', insertRaw: (function() {
42-
var buffer = new Buffer(21);
43-
buffer.writeUInt8(1, 0);
44-
buffer.writeUInt32LE(1, 1);
45-
buffer.writeDoubleLE(-5.6, 5);
46-
buffer.writeDoubleLE(10.23, 13);
47-
return 'GeomFromWKB(X\'' + buffer.toString('hex') + '\')';
48-
})(), expect: {x:-5.6, y:10.23}, deep: true},
42+
var buffer = new Buffer(21);
43+
buffer.writeUInt8(1, 0);
44+
buffer.writeUInt32LE(1, 1);
45+
buffer.writeDoubleLE(-5.6, 5);
46+
buffer.writeDoubleLE(10.23, 13);
47+
return 'GeomFromWKB(X\'' + buffer.toString('hex') + '\')';
48+
})(), expect: {x:-5.6, y:10.23}, deep: true},
4949
{type: 'point', insertRaw: '', insert: null, expect: null},
5050
{type: 'linestring', insertRaw: 'LINESTRING(POINT(1.2,-3.4),POINT(-5.6,10.23),POINT(0.2,0.7))', expect: [{x:1.2, y:-3.4}, {x:-5.6, y:10.23}, {x:0.2, y:0.7}], deep: true},
5151
{type: 'polygon', insertRaw: "GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5))')", expect: [[{x:0,y:0},{x:10,y:0},{x:10,y:10},{x:0,y:10},{x:0,y:0}],[{x:5,y:5},{x:7,y:5},{x:7,y:7},{x:5,y:7},{x:5,y:5}]], deep: true},
@@ -78,7 +78,7 @@ common.getTestConnection({supportBigNumbers: true}, function (err, connection) {
7878
var createTable = [
7979
'CREATE TEMPORARY TABLE ' + connection.escapeId(table) + ' (',
8080
'`id` int(11) unsigned NOT NULL AUTO_INCREMENT,'
81-
].concat(schema).concat([
81+
].concat(schema).concat([
8282
'PRIMARY KEY (`id`)',
8383
') ENGINE=InnoDB DEFAULT CHARSET=utf8'
8484
]).join('\n');

test/unit/connection/test-unix-domain-socket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ server.on('connection', function(connection) {
3636
});
3737

3838
process.on('exit', function() {
39-
assert.equal(didConnect, true);
40-
assert.equal(hadConnection, true);
39+
assert.equal(didConnect, true);
40+
assert.equal(hadConnection, true);
4141
});

test/unit/pool-cluster/test-remove-by-pattern.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ server.listen(common.fakeServerPort, function (err) {
2525

2626
cluster.remove('SLAVE*');
2727

28-
cluster.end(function (err) {
29-
assert.ifError(err);
30-
server.destroy();
31-
});
28+
cluster.end(function (err) {
29+
assert.ifError(err);
30+
server.destroy();
31+
});
3232
});
3333
});
3434
});

0 commit comments

Comments
 (0)