diff --git a/tools/lint/lint.py b/tools/lint/lint.py index 8cc01f32e5a6641..9447bb3f9146394 100644 --- a/tools/lint/lint.py +++ b/tools/lint/lint.py @@ -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): @@ -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