A platform for community discussion. Free, open, simple.
PERF: Correct should_skip? logic in `s3:upload` (#18862)
David Taylorb18ebc964811
diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rakeindex b8aa43eee4f..e8ef8da6d9d 100644--- a/lib/tasks/s3.rake+++ b/lib/tasks/s3.rake@@ -13,6 +13,7 @@ enddef should_skip?(path)return false if ENV['FORCE_S3_UPLOADS']@existing_assets ||= Set.new(helper.list("assets/").map(&:key))+ path = File.join(helper.s3_bucket_folder_path, path) if helper.s3_bucket_folder_path@existing_assets.include?(path)end