Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Feb 2, 2017
1 parent 8c140bd commit 0ce686d
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"rules": {
"no-fallthrough": 2,
"no-console": 0,
"no-unused-vars": 0,
"indent": [
Expand Down
1 change: 0 additions & 1 deletion examples/broadphase.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Example.broadphase = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30));
}
break;
case 1:
return Bodies.polygon(x, y, Math.round(Common.random(1, 8)), Common.random(20, 50));

Expand Down
1 change: 0 additions & 1 deletion examples/gravity.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Example.gravity = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30));
}
break;
case 1:
return Bodies.polygon(x, y, Math.round(Common.random(1, 8)), Common.random(20, 50));

Expand Down
1 change: 0 additions & 1 deletion examples/gyro.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ Example.gyro = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(25, 30), { chamfer: chamfer });
}
break;
case 1:
return Bodies.polygon(x, y, sides, Common.random(25, 50), { chamfer: chamfer });
}
Expand Down
1 change: 0 additions & 1 deletion examples/mixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ Example.mixed = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(25, 30), { chamfer: chamfer });
}
break;
case 1:
return Bodies.polygon(x, y, sides, Common.random(25, 50), { chamfer: chamfer });
}
Expand Down
1 change: 0 additions & 1 deletion examples/raycasting.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Example.raycasting = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30));
}
break;
case 1:
var sides = Math.round(Common.random(1, 8));
sides = (sides === 3) ? 4 : sides;
Expand Down
1 change: 0 additions & 1 deletion examples/sleeping.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Example.sleeping = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30));
}
break;
case 1:
return Bodies.polygon(x, y, Math.round(Common.random(1, 8)), Common.random(20, 50));

Expand Down
1 change: 0 additions & 1 deletion examples/timescale.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ Example.timescale = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30), bodyOptions);
}
break;
case 1:
return Bodies.polygon(x, y, Math.round(Common.random(4, 8)), Common.random(20, 50), bodyOptions);

Expand Down
1 change: 0 additions & 1 deletion examples/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Example.views = function() {
} else {
return Bodies.rectangle(x, y, Common.random(80, 120), Common.random(20, 30));
}
break;
case 1:
var sides = Math.round(Common.random(1, 8));
sides = (sides === 3) ? 4 : sides;
Expand Down
8 changes: 5 additions & 3 deletions src/geometry/Vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,10 @@ module.exports = Vector;
* @type {vector[]}
* @private
*/
Vector._temp = [Vector.create(), Vector.create(),
Vector.create(), Vector.create(),
Vector.create(), Vector.create()];
Vector._temp = [
Vector.create(), Vector.create(),
Vector.create(), Vector.create(),
Vector.create(), Vector.create()
];

})();

0 comments on commit 0ce686d

Please sign in to comment.