Skip to content

Commit

Permalink
Remove duplicate boolean checks (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldelcore authored and alexreardon committed Nov 27, 2019
1 parent c09aa9c commit acb9206
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/state/visibility/is-position-in-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit acb9206

Please sign in to comment.