We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1dee87 commit 07178a7Copy full SHA for 07178a7
utils/validate_release_links.py
@@ -87,13 +87,16 @@ def check_file(
87
new_file_name = os.path.join(tempdir, os.path.basename(filename))
88
with open(new_file_name, "w+") as new_file:
89
# default to match everything if there is nothing in the ALLOW_LIST
90
- allow_list_pattern = ALLOW_LIST.get(filename, MATCH_ANY)
+ allow_list_pattern = ALLOW_LIST.get(filename, None)
91
with open(filename) as f:
92
for line in f:
93
keep_line = True
94
keep_line = not RELEASE_PATTERN.search(line)
95
keep_line |= global_allow_pattern.search(line) is not None
96
- keep_line |= allow_list_pattern.search(line) is not None
+ keep_line |= (
97
+ allow_list_pattern is not None
98
+ and allow_list_pattern.search(line) is not None
99
+ )
100
101
if keep_line:
102
new_file.write(line)
0 commit comments