From 1ef8c14c4884e65bcc3a1da2223949c80ac99cac Mon Sep 17 00:00:00 2001 From: adampweb Date: Sun, 11 May 2025 10:57:36 +0200 Subject: [PATCH] Removed unused variable from `if` condition --- lib/wayback_machine_downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index beba6c5..b0e7a72 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -567,7 +567,7 @@ class WaybackMachineDownloader "#{file_url} -> #{file_path} (#{@processed_file_count + 1}/#{@total_to_download})" rescue StandardError => e 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) msg += "\n#{file_path} was empty and was removed." end