brew style --fix
This commit is contained in:
parent
09c679e75f
commit
7fdd75ad41
@ -50,8 +50,6 @@ module OS
|
|||||||
|
|
||||||
# rubocop:disable Style/Documentation
|
# rubocop:disable Style/Documentation
|
||||||
module Mac
|
module Mac
|
||||||
module_function
|
|
||||||
|
|
||||||
::MacOS = OS::Mac
|
::MacOS = OS::Mac
|
||||||
|
|
||||||
raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
||||||
@ -85,8 +83,6 @@ module OS
|
|||||||
end
|
end
|
||||||
|
|
||||||
module Xcode
|
module Xcode
|
||||||
module_function
|
|
||||||
|
|
||||||
def self.version
|
def self.version
|
||||||
::Version::NULL
|
::Version::NULL
|
||||||
end
|
end
|
||||||
@ -97,8 +93,6 @@ module OS
|
|||||||
end
|
end
|
||||||
|
|
||||||
module CLT
|
module CLT
|
||||||
module_function
|
|
||||||
|
|
||||||
def self.version
|
def self.version
|
||||||
::Version::NULL
|
::Version::NULL
|
||||||
end
|
end
|
||||||
|
|||||||
@ -261,8 +261,6 @@ module OS
|
|||||||
module CLT
|
module CLT
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
module_function
|
|
||||||
|
|
||||||
# The original Mavericks CLT package ID
|
# The original Mavericks CLT package ID
|
||||||
EXECUTABLE_PKG_ID = "com.apple.pkg.CLTools_Executables"
|
EXECUTABLE_PKG_ID = "com.apple.pkg.CLTools_Executables"
|
||||||
MAVERICKS_NEW_PKG_ID = "com.apple.pkg.CLTools_Base" # obsolete
|
MAVERICKS_NEW_PKG_ID = "com.apple.pkg.CLTools_Base" # obsolete
|
||||||
|
|||||||
@ -182,7 +182,9 @@ module GitHub
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.open_rest(url, data: nil, data_binary_path: nil, request_method: nil, scopes: [].freeze, parse_json: true)
|
def self.open_rest(
|
||||||
|
url, data: nil, data_binary_path: nil, request_method: nil, scopes: [].freeze, parse_json: true
|
||||||
|
)
|
||||||
# This is a no-op if the user is opting out of using the GitHub API.
|
# This is a no-op if the user is opting out of using the GitHub API.
|
||||||
return block_given? ? yield({}) : {} if Homebrew::EnvConfig.no_github_api?
|
return block_given? ? yield({}) : {} if Homebrew::EnvConfig.no_github_api?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user