We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aaf1258 + a82a8ef commit 630c1feCopy full SHA for 630c1fe
Library/Homebrew/download_strategy.rb
@@ -488,7 +488,7 @@ def fetch(timeout: nil)
488
# - Content-Length value is different than the file's size
489
cached_location_valid = if cached_location_valid
490
newer_last_modified = last_modified && last_modified > cached_location.mtime
491
- different_file_size = file_size && file_size != cached_location.size
+ different_file_size = file_size&.nonzero? && file_size != cached_location.size
492
!(newer_last_modified || different_file_size)
493
end
494
0 commit comments