Skip to content

Commit 234baa4

Browse files
committed
Remove redundant assignment in for loop
1 parent 77d3dcd commit 234baa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

startup_scripts/020_custom_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_class_for_class_path(class_path):
4545
if cf_details.get('choices', False):
4646
custom_field.choices = []
4747

48-
for _, choice_detail in enumerate(cf_details.get('choices', [])):
48+
for choice_detail in enumerate(cf_details.get('choices', [])):
4949
if isinstance(choice_detail, str):
5050
custom_field.choices.append(choice_detail)
5151
else: # legacy mode

0 commit comments

Comments
 (0)