Skip to content

Commit

Permalink
use any
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRiese committed Sep 19, 2023
1 parent fbf3ef1 commit c3b5ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corehq/apps/app_manager/suite_xml/features/case_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def build_case_tile_detail(self):
for column_info in self.detail_column_infos:
# column_info is an instance of DetailColumnInfo named tuple.
style = None
if column_info.column.grid_x is not None or column_info.column.grid_y is not None \
or column_info.column.height is not None or column_info.column.width is not None:
if any(field is not None for field in [column_info.column.grid_x, column_info.column.grid_y,
column_info.column.height, column_info.column.width]):
style = Style(grid_x=column_info.column.grid_x, grid_y=column_info.column.grid_y,
grid_height=column_info.column.height, grid_width=column_info.column.width,
horz_align=column_info.column.horizontal_align,
Expand Down

0 comments on commit c3b5ec3

Please sign in to comment.