diff --git a/utils/LinkChecker/cklcresults.py b/utils/LinkChecker/cklcresults.py index fea8974cb..7b476f95e 100644 --- a/utils/LinkChecker/cklcresults.py +++ b/utils/LinkChecker/cklcresults.py @@ -131,7 +131,7 @@ def AppendLineToPreviousKey(cr, key, line): # # Update trouble_links file if modified # -if ghEvent != "pull_request" and len(trouble_links) != trouble_links_original_size: +if ghEvent != 'pull_request' and len(trouble_links) != trouble_links_original_size: with open('utils/LinkChecker/trouble_links.txt','w') as file: for rec in trouble_links: file.write(str(rec)+'\n') @@ -139,7 +139,7 @@ def AppendLineToPreviousKey(cr, key, line): # # Update bad_links file if modified # -if len(bad_links) > bad_links_original_size: +if ghEvent != 'pull_request' and len(bad_links) > bad_links_original_size: with open('utils/LinkChecker/bad_links.txt','w') as file: for rec in bad_links: file.write(str(rec)+'\n')