Remove redundant assignment in for loop
This commit is contained in:
parent
77d3dcded0
commit
234baa40a5
|
@ -45,7 +45,7 @@ for cf_name, cf_details in customfields.items():
|
||||||
if cf_details.get('choices', False):
|
if cf_details.get('choices', False):
|
||||||
custom_field.choices = []
|
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):
|
if isinstance(choice_detail, str):
|
||||||
custom_field.choices.append(choice_detail)
|
custom_field.choices.append(choice_detail)
|
||||||
else: # legacy mode
|
else: # legacy mode
|
||||||
|
|
Loading…
Reference in New Issue