Commit 82bc6110 authored by Dan Pascu's avatar Dan Pascu

Removed unnecessary variable assignment

parent caa29938
...@@ -223,7 +223,7 @@ class PresencePublicationHandler(object): ...@@ -223,7 +223,7 @@ class PresencePublicationHandler(object):
blink_settings.presence.current_state = new_state blink_settings.presence.current_state = new_state
if new_state.note: if new_state.note:
try: try:
state = next(state for state in blink_settings.presence.state_history if state==new_state) next(state for state in blink_settings.presence.state_history if state==new_state)
except StopIteration: except StopIteration:
blink_settings.presence.state_history = [new_state] + blink_settings.presence.state_history blink_settings.presence.state_history = [new_state] + blink_settings.presence.state_history
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment