Skip to content

Commit

Permalink
Merge pull request #542 from The-4th-Hokage/deepsource-fix-38916fa4
Browse files Browse the repository at this point in the history
Refactor the comparison involving `not`
  • Loading branch information
Dhruvacube authored Mar 7, 2022
2 parents 9ca1b63 + 1f1a6aa commit f790cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minato_namikaze/lib/classes/games/shinobi_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async def on_timeout(self):

async def determine_winer(self, force: bool = False) -> Optional[List[discord.Embed]]:
if not force:
if not self.health1 <= 0 and not self.health2 <= 0:
if self.health1 > 0 and self.health2 > 0:
return

if self.health1 == self.health2:
Expand Down

0 comments on commit f790cb3

Please sign in to comment.