Skip to content

Commit b0554a2

Browse files
🔵 rename local variable
1 parent bef5fdc commit b0554a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frictionless/validator/validator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def validate_package(
3333
timer = helpers.Timer()
3434
reports: List[Report] = []
3535
resources = package.resources if name is None else [package.get_resource(name)]
36-
with_fks = any(res.schema and res.schema.foreign_keys for res in resources)
36+
with_foreign_keys = any(
37+
res.schema and res.schema.foreign_keys for res in resources
38+
)
3739

3840
# Prepare checklist
3941
checklist = checklist or Checklist()
@@ -45,7 +47,7 @@ def validate_package(
4547
return Report.from_validation(time=timer.time, errors=exception.to_errors())
4648

4749
# Validate sequential
48-
if not parallel or with_fks:
50+
if not parallel or with_foreign_keys:
4951
for resource in resources:
5052
report = resource.validate(
5153
checklist=checklist,

0 commit comments

Comments
 (0)