Skip to content

Commit 28743b0

Browse files
committed
Remove the empty updated_about list.
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent a91a846 commit 28743b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/attributecode/attrib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ def generate_and_save(abouts, output_location, template_loc=None, variables=None
173173
`output_location` file.
174174
Return a list of Error objects if any.
175175
"""
176-
updated_abouts = []
177176
errors = []
178177

179178
# Parse license_expression and save to the license list
180-
for about in updated_abouts:
179+
for about in abouts:
181180
if not about.license_expression.value:
182181
continue
183182
special_char_in_expression, lic_list = parse_license_expression(about.license_expression.value)
@@ -189,7 +188,7 @@ def generate_and_save(abouts, output_location, template_loc=None, variables=None
189188
about.license_key.value = lic_list
190189

191190
rendering_error, rendered = generate_from_file(
192-
updated_abouts,
191+
abouts,
193192
template_loc=template_loc,
194193
variables=variables
195194
)

0 commit comments

Comments
 (0)