From 5c032d36169dc4307bbf0623067fe60a6b595146 Mon Sep 17 00:00:00 2001 From: botantony Date: Wed, 23 Apr 2025 20:17:12 +0200 Subject: [PATCH] formula: fix JSON API generation for `no_autobump!` method Signed-off-by: botantony --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9aab7c1671..4344adfa92 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -4210,7 +4210,9 @@ class Formula end sig { returns(T::Boolean) } - def autobump? = @autobump == true + def autobump? + @autobump != false # @autobump may be `nil` + end sig { returns(T::Boolean) } def no_autobump_defined? = @no_autobump_defined == true