Skip to content

Commit 5b063b9

Browse files
committed
lint: fix semicolon spacing
1 parent 5461573 commit 5b063b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"no-unused-vars": 2,
3737
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
3838
"semi": [2, "always"],
39+
"semi-spacing": 2,
3940
"use-isnan": 2,
4041
"valid-jsdoc": 2,
4142
"valid-typeof": 2

lib/protocol/Parser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Parser.prototype.parseGeometryValue = function() {
323323
case 2: // WKBLineString
324324
var numPoints = byteOrder? buffer.readUInt32LE(offset) : buffer.readUInt32BE(offset); offset += 4;
325325
result = [];
326-
for(var i=numPoints;i>0;i--) {
326+
for(var i=numPoints; i>0; i--) {
327327
var x = byteOrder? buffer.readDoubleLE(offset) : buffer.readDoubleBE(offset); offset += 8;
328328
var y = byteOrder? buffer.readDoubleLE(offset) : buffer.readDoubleBE(offset); offset += 8;
329329
result.push({x: x, y: y});
@@ -332,10 +332,10 @@ Parser.prototype.parseGeometryValue = function() {
332332
case 3: // WKBPolygon
333333
var numRings = byteOrder? buffer.readUInt32LE(offset) : buffer.readUInt32BE(offset); offset += 4;
334334
result = [];
335-
for(var i=numRings;i>0;i--) {
335+
for(var i=numRings; i>0; i--) {
336336
var numPoints = byteOrder? buffer.readUInt32LE(offset) : buffer.readUInt32BE(offset); offset += 4;
337337
var line = [];
338-
for(var j=numPoints;j>0;j--) {
338+
for(var j=numPoints; j>0; j--) {
339339
var x = byteOrder? buffer.readDoubleLE(offset) : buffer.readDoubleBE(offset); offset += 8;
340340
var y = byteOrder? buffer.readDoubleLE(offset) : buffer.readDoubleBE(offset); offset += 8;
341341
line.push({x: x, y: y});
@@ -349,7 +349,7 @@ Parser.prototype.parseGeometryValue = function() {
349349
case 7: // WKBGeometryCollection
350350
var num = byteOrder? buffer.readUInt32LE(offset) : buffer.readUInt32BE(offset); offset += 4;
351351
var result = [];
352-
for(var i=num;i>0;i--) {
352+
for(var i=num; i>0; i--) {
353353
result.push(parseGeometry());
354354
}
355355
break;

0 commit comments

Comments
 (0)