Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
David Almeida committed Jan 29, 2025
1 parent 90fd253 commit 38d62e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomenclature/processor/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def check_constituent_regions_in_native_regions(
if v.common_regions and v.native_regions:
if missing := set(
[cr for r in v.common_regions for cr in r.constituent_regions]
).difference([r.name for r in v.native_regions if v.native_regions]):
).difference([r.name for r in v.native_regions]):
raise PydanticCustomError(
*custom_pydantic_errors.ConstituentsNotNativeError,
{"regions": missing, "file": v.file},
Expand Down

0 comments on commit 38d62e8

Please sign in to comment.