From acb9206634f76e7826023da7dee67248403c2089 Mon Sep 17 00:00:00 2001 From: Daniel Del Core Date: Wed, 27 Nov 2019 17:05:53 +1100 Subject: [PATCH] Remove duplicate boolean checks (#1635) --- src/state/visibility/is-position-in-frame.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/state/visibility/is-position-in-frame.js b/src/state/visibility/is-position-in-frame.js index 7037bcf852..fd2669c3b2 100644 --- a/src/state/visibility/is-position-in-frame.js +++ b/src/state/visibility/is-position-in-frame.js @@ -7,8 +7,5 @@ export default (frame: Spacing) => { const isWithinHorizontal = isWithin(frame.left, frame.right); return (point: Position) => - isWithinVertical(point.y) && - isWithinVertical(point.y) && - isWithinHorizontal(point.x) && - isWithinHorizontal(point.x); + isWithinVertical(point.y) && isWithinHorizontal(point.x); };