diff --git a/Library/Homebrew/extend/array.rb b/Library/Homebrew/extend/array.rb index 468149e00c..7e4b430db9 100644 --- a/Library/Homebrew/extend/array.rb +++ b/Library/Homebrew/extend/array.rb @@ -2,7 +2,6 @@ # frozen_string_literal: true class Array - # Equal to self[1]. # # %w( a b c d e ).second # => "b" diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index fa07be12e7..960817893f 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -69,7 +69,6 @@ HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})] HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/ -require "extend/module" require "extend/array" require "extend/blank" require "env_config" diff --git a/Library/Homebrew/rubocops.rb b/Library/Homebrew/rubocops.rb index 187b692368..3e5daa64c3 100644 --- a/Library/Homebrew/rubocops.rb +++ b/Library/Homebrew/rubocops.rb @@ -2,6 +2,5 @@ # frozen_string_literal: true require_relative "standalone" -require_relative "extend/module" require "rubocops/all" diff --git a/Library/Homebrew/standalone/sorbet.rb b/Library/Homebrew/standalone/sorbet.rb index 4aaa7e965a..d15116a8f1 100644 --- a/Library/Homebrew/standalone/sorbet.rb +++ b/Library/Homebrew/standalone/sorbet.rb @@ -2,6 +2,7 @@ # frozen_string_literal: true require "sorbet-runtime" +require "extend/module" # Disable runtime checking unless enabled. # In the future we should consider not doing this monkey patch,