lib/dockly/build_cache/base.rb in dockly-1.4.8 vs lib/dockly/build_cache/base.rb in dockly-1.4.9

- old
+ new

@@ -56,11 +56,11 @@ file_name = s3_object(version) file_path = File.join(tmp_dir,file_name) FileUtils.mkdir_p(File.dirname(file_path)) - file = unless File.exist?(file_path) + unless File.exist?(file_path) debug 'Pulling build cache from s3' object = connection.get_object(s3_bucket, file_name) debug 'Pulled build cache from s3' file = File.open(file_path, 'w+b') @@ -68,11 +68,9 @@ file.tap(&:rewind) else info 'Build cache already exists locally' File.open(file_path, 'rb') end - - file rescue Excon::Errors::NotFound nil end def hash_output