Remmove unused variable

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2023-10-11 10:01:59 +02:00
parent fd7409b400
commit 785a81cd5e
No known key found for this signature in database
GPG key ID: 29A48C1F03620416

View file

@ -139,7 +139,6 @@ def check_schema_dir(schemadir):
"files": 0,
"errors": 0,
}
errors = []
for root, dirs, files in os.walk(schemadir):
for schemadir in dirs:
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))
except Exception as e:
report["errors"] += 1
errors.append(sys.exc_info())
return report
# The directory that this script is residing in.