From d3ea535a9a49f5b90a953be22ac0bccd6ace95b9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 19 Mar 2024 08:52:28 +0000 Subject: [PATCH] dev-cmd/bump: handle no formula tap case. Fixes https://github.com/Homebrew/brew/issues/16913 --- Library/Homebrew/dev-cmd/bump.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 008d2f7794f7a..a0838af837c36 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -240,7 +240,7 @@ def skip_ineligible_formulae(formula_or_cask) name = formula_or_cask.token text = "Cask is disabled.\n" end - unless formula_or_cask.tap.allow_bump?(name) + if (tap = formula_or_cask.tap) && !tap.allow_bump?(name) skip = true text = "#{text.split.first} is on autobump list.\n" end