PRESUBMIT: Remove unnecessary escape of forward slash

Bug: angleproject:7279
Change-Id: Icf9482fb83c60640d5af6380674b9d857aa9ff0b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3828443
Reviewed-by: Roman Lavrov <romanl@google.com>
Auto-Submit: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Roman Lavrov <romanl@google.com>
This commit is contained in:
Shahbaz Youssefi 2022-08-11 22:10:36 -04:00 коммит произвёл Angle LUCI CQ
Родитель 1ca944482b
Коммит 67e0c6fcc9
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -395,7 +395,7 @@ def _CheckCommentBeforeTestInTestFiles(input_api, output_api):
def test_files(f): def test_files(f):
return input_api.FilterSourceFile( return input_api.FilterSourceFile(
f, files_to_check=(r'^src\/tests\/.+\.cpp$', r'^src\/.+_unittest\.cpp$')) f, files_to_check=(r'^src/tests/.+\.cpp$', r'^src/.+_unittest\.cpp$'))
tests_with_no_comment = [] tests_with_no_comment = []
for f in input_api.AffectedSourceFiles(test_files): for f in input_api.AffectedSourceFiles(test_files):
@ -432,8 +432,7 @@ def _CheckShaderVersionInShaderLangHeader(input_api, output_api):
def headers(f): def headers(f):
return input_api.FilterSourceFile( return input_api.FilterSourceFile(
f, f,
files_to_check=(r'^include\/GLSLANG\/ShaderLang.h$', files_to_check=(r'^include/GLSLANG/ShaderLang.h$', r'^include/GLSLANG/ShaderVars.h$'))
r'^include\/GLSLANG\/ShaderVars.h$'))
headers_changed = input_api.AffectedSourceFiles(headers) headers_changed = input_api.AffectedSourceFiles(headers)
if len(headers_changed) == 0: if len(headers_changed) == 0: