🎨 Nobody's getting paid by lines of code

xref: https://github.com/atom/atom/pull/14640#pullrequestreview-41023656
This commit is contained in:
Jason Rudolph
2017-05-31 10:13:31 -04:00
parent e3c612b261
commit 4c9acf00b3

View File

@@ -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