Skip to content

Commit

Permalink
Polish if check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed May 29, 2024
1 parent 7099f55 commit a453f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howitz/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def unselect_event(event_id):

show_clear_flapping = False
selected_event_types = session["selected_events"].values()
if bool(selected_event_types): # selected events dict contains event types
if selected_event_types: # selected events dict contains event types
# Allow bulk clear flapping only if all of selected events are confirmed portstate events
show_clear_flapping = all(event_type == 'portstate' for event_type in selected_event_types)

Expand Down

0 comments on commit a453f97

Please sign in to comment.