This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 001dc22  Remove assignment that assigns a variable to itself (#16413)
001dc22 is described below

commit 001dc22af9a30f710501eac85ff04297ba2a728f
Author: Almog Tavor <[email protected]>
AuthorDate: Sun Jun 13 15:11:06 2021 +0300

    Remove assignment that assigns a variable to itself (#16413)
---
 scripts/ci/pre_commit/pre_commit_json_schema.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/scripts/ci/pre_commit/pre_commit_json_schema.py 
b/scripts/ci/pre_commit/pre_commit_json_schema.py
index c47a126..c949ea8 100755
--- a/scripts/ci/pre_commit/pre_commit_json_schema.py
+++ b/scripts/ci/pre_commit/pre_commit_json_schema.py
@@ -149,8 +149,6 @@ def _default_validator(validator, default, instance, 
schema):
 def _load_spec(spec_file: Optional[str], spec_url: Optional[str]):
     if spec_url:
         spec_file = fetch_and_cache(url=spec_url, 
output_filename=re.sub(r"[^a-zA-Z0-9]", "-", spec_url))
-    else:
-        spec_file = spec_file
     with open(spec_file) as schema_file:
         schema = json.loads(schema_file.read())
     return schema

Reply via email to