Fix formatting

This commit is contained in:
Douglas Eichelberger 2024-09-19 10:43:05 -07:00
parent 61985bc7f3
commit 125ced9cf8

View File

@ -6,8 +6,9 @@ module OS
module SimulateSystem module SimulateSystem
sig { returns(T::Boolean) } sig { returns(T::Boolean) }
def simulating_or_running_on_macos? def simulating_or_running_on_macos?
Homebrew::SimulateSystem.os.blank? || [:macos, return true if Homebrew::SimulateSystem.os.blank?
*MacOSVersion::SYMBOLS.keys].include?(Homebrew::SimulateSystem.os)
[:macos, *MacOSVersion::SYMBOLS.keys].include?(Homebrew::SimulateSystem.os)
end end
sig { returns(Symbol) } sig { returns(Symbol) }