From 234baa40a5191e0865d52c7ca2a11aeeed0c2ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= Date: Sun, 18 Oct 2020 03:01:57 +0200 Subject: [PATCH] Remove redundant assignment in for loop --- startup_scripts/020_custom_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup_scripts/020_custom_fields.py b/startup_scripts/020_custom_fields.py index 3b2f1c1..da93a92 100644 --- a/startup_scripts/020_custom_fields.py +++ b/startup_scripts/020_custom_fields.py @@ -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