Remove obvious comments as requested in review

Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-01 10:57:39 +00:00 committed by Bevan Kay
parent ac6f770cdc
commit f973bea35c
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -114,14 +114,12 @@ module Homebrew
download = Cask::Download.new(cask, quarantine: true) download = Cask::Download.new(cask, quarantine: true)
# Check if already downloaded to avoid unnecessary fetch output
if download.downloaded? if download.downloaded?
downloaded_path = download.cached_download downloaded_path = download.cached_download
else else
downloaded_path = download.fetch(quiet: false) downloaded_path = download.fetch(quiet: false)
end end
# Extract to destination
stage_dir.mkpath stage_dir.mkpath
UnpackStrategy.detect(downloaded_path).extract_nestedly(to: stage_dir, verbose: true) UnpackStrategy.detect(downloaded_path).extract_nestedly(to: stage_dir, verbose: true)
end end