Wokia-Dev / EzFractal

if statements can be merged PTC-W0048
Anti-pattern
Major
a year agoa year old
245
246    def check_hover(self, x, y):
247        # check if the mouse is hovering over the scroll view
248        if self.x <= x <= self.x + self.width:249            if self.y <= y <= self.y + self.display_height:
250                return True
251        return False
Consider merging collapsible if statements
245
246    def check_hover(self, x, y):
247        # check if the mouse is hovering over the scroll view
248        if self.x <= x <= self.x + self.width:249            if self.y <= y <= self.y + self.display_height:
250                return True
251        return False