From ffdd3644fd209afc93853bc4d1a0d5fb8c6c7524 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sat, 11 Sep 2021 00:10:24 +0100 Subject: [PATCH] os/linux: fix Version::NULL type mixup --- Library/Homebrew/os/linux.rb | 8 ++++---- Library/Homebrew/sorbet/rbi/todo.rbi | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/os/linux.rb b/Library/Homebrew/os/linux.rb index 25a1291d07..3fab729ad7 100644 --- a/Library/Homebrew/os/linux.rb +++ b/Library/Homebrew/os/linux.rb @@ -40,11 +40,11 @@ module OS raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"] def version - Version::NULL + ::Version::NULL end def full_version - Version::NULL + ::Version::NULL end def languages @@ -71,7 +71,7 @@ module OS module_function def version - Version::NULL + ::Version::NULL end def installed? @@ -83,7 +83,7 @@ module OS module_function def version - Version::NULL + ::Version::NULL end def installed? diff --git a/Library/Homebrew/sorbet/rbi/todo.rbi b/Library/Homebrew/sorbet/rbi/todo.rbi index 9257c3b689..a16c8cc681 100644 --- a/Library/Homebrew/sorbet/rbi/todo.rbi +++ b/Library/Homebrew/sorbet/rbi/todo.rbi @@ -4,7 +4,6 @@ # typed: strong module ::StackProf; end module DependencyCollector::Compat; end -module OS::Mac::Version::NULL; end module T::InterfaceWrapper::Helpers; end module T::Private::Abstract::Hooks; end module T::Private::Methods::MethodHooks; end