From 4c9acf00b35be95cc4b3d44b41bae19138e15eda Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Wed, 31 May 2017 10:13:31 -0400 Subject: [PATCH] :art: Nobody's getting paid by lines of code xref: https://github.com/atom/atom/pull/14640#pullrequestreview-41023656 --- src/workspace-element.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/workspace-element.js b/src/workspace-element.js index a1e8f3ba7..f96613386 100644 --- a/src/workspace-element.js +++ b/src/workspace-element.js @@ -283,9 +283,8 @@ class WorkspaceElement extends HTMLElement { const visiblePanes = _.flatten(visiblePaneContainers.map(container => container.getPanes())) const paneViews = visiblePanes - .map(otherPane => { - return otherPane.getElement() - }).filter(otherPaneView => { + .map(otherPane => otherPane.getElement()) + .filter(otherPaneView => { const otherBox = this.boundingBoxForPaneView(otherPaneView) switch (direction) { case 'left': return otherBox.right.x <= box.left.x