Skip to content

Commit

Permalink
chore: Avoid unnecessary assignment before for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 28, 2024
1 parent 77b81e8 commit 37a093d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jscc/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def extend_schema(basename, schema, metadata, codelists=None):
:rtype: dict
"""
def recurse(metadata):
urls = metadata.get('dependencies', []) + metadata.get('testDependencies', [])
for metadata_url in urls:
for metadata_url in metadata.get('dependencies', []) + metadata.get('testDependencies', []):
patch_url = f"{metadata_url.rsplit('/', 1)[0]}/{basename}"
metadata = http_get(metadata_url).json()
patch = http_get(patch_url).json()
Expand Down

0 comments on commit 37a093d

Please sign in to comment.