Skip to content

Commit

Permalink
style: PEP8 'Comparisons to ... None should always be done with is or…
Browse files Browse the repository at this point in the history
… is not, never the equality operators'
  • Loading branch information
elliot-100 committed May 23, 2024
1 parent 5a09879 commit d3c08fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spond/spond.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ async def update_event(self, uid, updates: dict):
}

for key in base_event:
if event.get(key) != None and not updates.get(key):
if event.get(key) is not None and not updates.get(key):
base_event[key] = event[key]
elif updates.get(key) != None:
elif updates.get(key) is not None:
base_event[key] = updates[key]

data = dict(base_event)
Expand Down

0 comments on commit d3c08fc

Please sign in to comment.