diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 9d54d1f2c7..9c7574b03f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -522,7 +522,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy .flat_map { |headers| [*headers["last-modified"]] } .filter_map do |t| t.match?(/^\d+$/) ? Time.at(t.to_i) : Time.parse(t) - rescue ArgumentError + rescue ArgumentError # When `Time.parse` gets a badly formatted date. nil end