Skip to content

Commit

Permalink
remove redundant param in windowWithinBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
mawie81 committed Nov 25, 2018
1 parent d764cb5 commit b753820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function (options) {
};
}

function windowWithinBounds(state, bounds) {
function windowWithinBounds(bounds) {
return (
state.x >= bounds.x &&
state.y >= bounds.y &&
Expand All @@ -56,7 +56,7 @@ module.exports = function (options) {

function ensureWindowVisibleOnSomeDisplay() {
const visible = screen.getAllDisplays().some(display => {
return windowWithinBounds(state, display.bounds);
return windowWithinBounds(display.bounds);
});

if (!visible) {
Expand Down

0 comments on commit b753820

Please sign in to comment.