From 6f58bffc5cd61a3ae990af87d12c1b92902432cc Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 14 Jul 2024 13:48:23 -0400 Subject: [PATCH] Remove useless `ignore_interrupts`. --- Library/Homebrew/utils/github/artifacts.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/utils/github/artifacts.rb b/Library/Homebrew/utils/github/artifacts.rb index 70290e579e..9e0756a5f1 100644 --- a/Library/Homebrew/utils/github/artifacts.rb +++ b/Library/Homebrew/utils/github/artifacts.rb @@ -43,12 +43,11 @@ class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy 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 end