From 35bef657e9c65268e4888d489950184b238ba13f Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Wed, 16 Aug 2023 10:41:07 +0800 Subject: [PATCH] ! Fix variable name in not auto tested code --- lib/asset_sync/storage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asset_sync/storage.rb b/lib/asset_sync/storage.rb index ad81c98..28232e9 100644 --- a/lib/asset_sync/storage.rb +++ b/lib/asset_sync/storage.rb @@ -269,7 +269,7 @@ def upload_file(f) # as we will overwrite file.css with file.css.gz if it exists. log "Ignoring: #{f}" ignore = true - elsif File.exist?(compressed) + elsif File.exist?(compressed_name) original_size = File.size("#{path}/#{f}") compressed_size = File.size(compressed_name)