mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-28 13:24:10 +02:00
Remmove unused variable
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
fd7409b400
commit
785a81cd5e
|
|
@ -139,7 +139,6 @@ def check_schema_dir(schemadir):
|
||||||
"files": 0,
|
"files": 0,
|
||||||
"errors": 0,
|
"errors": 0,
|
||||||
}
|
}
|
||||||
errors = []
|
|
||||||
for root, dirs, files in os.walk(schemadir):
|
for root, dirs, files in os.walk(schemadir):
|
||||||
for schemadir in dirs:
|
for schemadir in dirs:
|
||||||
dir_report = check_schema_dir(os.path.join(root, schemadir))
|
dir_report = check_schema_dir(os.path.join(root, schemadir))
|
||||||
|
|
@ -157,7 +156,6 @@ def check_schema_dir(schemadir):
|
||||||
check_schema_file(os.path.join(root, filename))
|
check_schema_file(os.path.join(root, filename))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
report["errors"] += 1
|
report["errors"] += 1
|
||||||
errors.append(sys.exc_info())
|
|
||||||
return report
|
return report
|
||||||
|
|
||||||
# The directory that this script is residing in.
|
# The directory that this script is residing in.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue