Skip to content

Commit 46f8b15

Browse files
a-grealishparamt
authored andcommitted
Fix typo in get_test_from_file function name
1 parent 29aa904 commit 46f8b15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check_links.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def remove_duplicates(urls):
1717
return list(set(urls))
1818

1919

20-
def get_test_from_file(file):
20+
def get_text_from_file(file):
2121
# Assume the local file has been checked out in the action
2222
try:
2323
with open('./' + file) as f:
@@ -39,7 +39,7 @@ def get_test_from_file(file):
3939

4040
for file in files:
4141

42-
text = get_test_from_file(file)
42+
text = get_text_from_file(file)
4343

4444
extractor = URLExtract()
4545
file_links = extractor.find_urls(text)
@@ -83,4 +83,4 @@ def get_test_from_file(file):
8383
# Newline to separate URLs from different files
8484
print()
8585

86-
exit(exit_status)
86+
exit(exit_status)

0 commit comments

Comments
 (0)