Skip to content

Commit

Permalink
Remove useless ignore_interrupts.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jul 14, 2024
1 parent 07f5f96 commit bd74a1c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Library/Homebrew/download_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,11 @@ def fetch(timeout: nil)
rescue ErrorDuringExecution
raise CurlDownloadStrategyError, url
end
ignore_interrupts do
cached_location.dirname.mkpath
temporary_path.rename(cached_location)
symlink_location.dirname.mkpath
end
cached_location.dirname.mkpath
temporary_path.rename(cached_location)
end

symlink_location.dirname.mkpath
FileUtils.ln_s cached_location.relative_path_from(symlink_location.dirname), symlink_location, force: true
rescue CurlDownloadStrategyError
raise if urls.empty?
Expand Down

0 comments on commit bd74a1c

Please sign in to comment.