From 774d8bccff331df74cd3e858c9012c0547a6ce68 Mon Sep 17 00:00:00 2001 From: liabru Date: Thu, 6 Jul 2017 23:36:39 +0100 Subject: [PATCH] fix lint errors --- src/body/Composite.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/body/Composite.js b/src/body/Composite.js index 885669c..e2587ec 100644 --- a/src/body/Composite.js +++ b/src/body/Composite.js @@ -539,15 +539,15 @@ var Body = require('./Body'); * @returns {bounds} The composite bounds. */ Composite.bounds = function(composite) { - var bodies = Matter.Composite.allBodies(composite), - vertices = []; - - for (var i = 0; i < bodies.length; i += 1) { - var body = bodies[i]; - vertices.push(body.bounds.min, body.bounds.max); - } + var bodies = Matter.Composite.allBodies(composite), + vertices = []; - return Matter.Bounds.create(vertices); + for (var i = 0; i < bodies.length; i += 1) { + var body = bodies[i]; + vertices.push(body.bounds.min, body.bounds.max); + } + + return Matter.Bounds.create(vertices); }; /*