Remove redundant assignment in for loop

This commit is contained in:
Christian Mäder 2020-10-18 03:01:57 +02:00 committed by Christian Mäder
parent 77d3dcded0
commit 234baa40a5
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ for cf_name, cf_details in customfields.items():
if cf_details.get('choices', False):
custom_field.choices = []
for _, choice_detail in enumerate(cf_details.get('choices', [])):
for choice_detail in enumerate(cf_details.get('choices', [])):
if isinstance(choice_detail, str):
custom_field.choices.append(choice_detail)
else: # legacy mode