Removed unused variable from if condition

This commit is contained in:
adampweb 2025-05-11 10:57:36 +02:00
parent 42e6d62284
commit 1ef8c14c48

View File

@ -567,7 +567,7 @@ class WaybackMachineDownloader
"#{file_url} -> #{file_path} (#{@processed_file_count + 1}/#{@total_to_download})" "#{file_url} -> #{file_path} (#{@processed_file_count + 1}/#{@total_to_download})"
rescue StandardError => e rescue StandardError => e
msg = "Failed: #{file_url} # #{e} (#{@processed_file_count + 1}/#{@total_to_download})" msg = "Failed: #{file_url} # #{e} (#{@processed_file_count + 1}/#{@total_to_download})"
if not @all and File.exist?(file_path) and File.size(file_path) == 0 if File.exist?(file_path) and File.size(file_path) == 0
File.delete(file_path) File.delete(file_path)
msg += "\n#{file_path} was empty and was removed." msg += "\n#{file_path} was empty and was removed."
end end