From 1c5ec87069581c889dda1976dc6ad49687405c2a Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Sat, 27 Jul 2024 15:23:38 +0100 Subject: [PATCH] Fixed license header checker handling deleted files incorrectly --- .ci/license-header.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/license-header.rb b/.ci/license-header.rb index a6b4c4983..faf59aa8c 100755 --- a/.ci/license-header.rb +++ b/.ci/license-header.rb @@ -17,7 +17,7 @@ puts 'done' print 'Checking files...' issue_files = [] branch_changed_files.each do |file_name| - if file_name.end_with?('.cpp', '.h', '.kt') + if file_name.end_with?('.cpp', '.h', '.kt') and File.file?(file_name) file_content = File.read(file_name) if not file_content.start_with?(license_header) issue_files.push(file_name)