Remove unused variable in stats _sorted_statistics_to_dict (#111912)

pull/111916/head
J. Nick Koston 2024-02-29 16:23:33 -10:00 committed by GitHub
parent d81ed37501
commit 72fe170dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2056,7 +2056,7 @@ def _sorted_statistics_to_dict( # noqa: C901
seen_statistic_ids: set[str] = set()
key_func = itemgetter(metadata_id_idx)
for meta_id, group in groupby(stats, key_func):
stats_list = stats_by_meta_id[meta_id] = list(group)
stats_by_meta_id[meta_id] = list(group)
seen_statistic_ids.add(metadata[meta_id]["statistic_id"])
# Set all statistic IDs to empty lists in result set to maintain the order