Skip to content

Commit 2d0c492

Browse files
committed
use pylint comparison preferences
1 parent 4cddf2e commit 2d0c492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Metro/Metro_RP2350_Minesweeper/gamelogic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def square_chorded(self, coords):
194194
if dx == 0 and dy == 0:
195195
continue # don't process where the mine
196196
_tile_content = self._get_board(x, y, dx, dy)
197-
if _tile_content != FLAG and _tile_content != None:
197+
if _tile_content not in (FLAG, None):
198198
if not self.square_clicked((x + dx, y + dy)):
199199
return False # lost
200200
return True

0 commit comments

Comments
 (0)