From 2a7fbd00a93de768505e75e8fb85b6c977233ae2 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Sat, 21 Jun 2025 21:07:08 -0400 Subject: [PATCH] Fix `Cask::Quarantine` class methods on Linux --- Library/Homebrew/extend/os/linux/cask/quarantine.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/cask/quarantine.rb b/Library/Homebrew/extend/os/linux/cask/quarantine.rb index 62d981ee3d..0fb015f07e 100644 --- a/Library/Homebrew/extend/os/linux/cask/quarantine.rb +++ b/Library/Homebrew/extend/os/linux/cask/quarantine.rb @@ -10,13 +10,13 @@ module OS requires_ancestor { ::Cask::Quarantine } sig { returns(Symbol) } - def self.check_quarantine_support = :linux + def check_quarantine_support = :linux sig { returns(T::Boolean) } - def self.available? = false + def available? = false end end end end -Cask::Quarantine.prepend(OS::Linux::Cask::Quarantine) +Cask::Quarantine.singleton_class.prepend(OS::Linux::Cask::Quarantine)