Skip to content

Commit

Permalink
remove is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
jesicasusanto committed Jul 18, 2023
1 parent 1027546 commit 49d3d32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openadapt/strategies/stateful.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ def get_window_state_diffs(
logger.info(f"ignoring {first_window_title=} {last_window_title=}")
window_event_states = [
action_event.window_event.state
if action_event.window_event.state is not None
and action_event.window_event.state["window_id"] not in ignore_window_ids
if action_event.window_event.state["window_id"] not in ignore_window_ids
else {}
for action_event in action_events
]
Expand Down

0 comments on commit 49d3d32

Please sign in to comment.