Merge pull request #17184 from reitermarkus/unneeded-extend

Remove disabled `extend`.
This commit is contained in:
Mike McQuaid 2024-04-30 10:48:58 +01:00 committed by GitHub
commit c9c8806be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 23 deletions

View File

@ -1,17 +0,0 @@
# typed: true
# frozen_string_literal: true
class Tap
def self.install_default_cask_tap_if_necessary(force: false)
odisabled "Tap.install_default_cask_tap_if_necessary", "CoreCaskTap.ensure_installed!"
cask_tap = CoreCaskTap.instance
return false if cask_tap.installed?
return false unless Homebrew::EnvConfig.no_install_from_api?
return false if Homebrew::EnvConfig.automatically_set_no_install_from_api?
return false if !force && Tap.untapped_official_taps.include?(cask_tap.name)
cask_tap.install
true
end
end

View File

@ -1,4 +0,0 @@
# typed: strict
# frozen_string_literal: true
require "extend/os/mac/tap" if OS.mac?

View File

@ -1458,5 +1458,3 @@ class TapConfig
Homebrew::Settings.delete key, repo: tap.path
end
end
require "extend/os/tap"