Skip to content

Commit

Permalink
indents
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Dec 16, 2024
1 parent bc1e1df commit 1dea37a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tools/lint/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,14 +585,12 @@ def is_query_string_correct(script: Text, src: Text,
return False
return True

if not is_path_correct("testharness.js",
src) or not is_query_string_correct(
"testharness.js", src, {}):
if (not is_path_correct("testharness.js", src) or
not is_query_string_correct("testharness.js", src, {})):
errors.append(rules.TestharnessPath.error(path))

if not is_path_correct("testharnessreport.js",
src) or not is_query_string_correct(
"testharnessreport.js", src, {}):
if (not is_path_correct("testharnessreport.js", src) or
not is_query_string_correct("testharnessreport.js", src, {})):
errors.append(rules.TestharnessReportPath.error(path))

if not is_path_correct("testdriver.js", src):
Expand All @@ -601,9 +599,8 @@ def is_query_string_correct(script: Text, src: Text,
{'feature': ['bidi']}):
errors.append(rules.TestdriverUnsupportedQueryParameter.error(path))

if not is_path_correct("testdriver-vendor.js",
src) or not is_query_string_correct(
"testdriver-vendor.js", src, {}):
if (not is_path_correct("testdriver-vendor.js", src) or
not is_query_string_correct("testdriver-vendor.js", src, {})):
errors.append(rules.TestdriverVendorPath.error(path))

script_path = None
Expand Down

0 comments on commit 1dea37a

Please sign in to comment.