1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-30 07:09:39 +03:00

Test for if suit is None rather than a boolean test.

This matches the explicit default in the .get()
This commit is contained in:
Athanasius 2021-05-25 14:31:27 +01:00
parent 00469384b4
commit 68a0e6c7af

View File

@ -1600,7 +1600,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# Check if this looks like a suit we already have stored, so as
# to avoid 'bad' Journal localised names.
suit = self.state['Suits'].get(f"{suitid}", None)
if not suit:
if suit is None:
# Initial suit containing just the data that is then embedded in
# the loadout
suit = {