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 committed 2021-05-25 14:31:27 +01:00
1 parent 00469384b4
commit 68a0e6c7af
1 file changed
+1 -1
+1 -1
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 = {