From 1d35406905e645e4f30b318d78ec9f76cbc247ee Mon Sep 17 00:00:00 2001 From: Nanda H Krishna Date: Mon, 10 Mar 2025 13:21:00 -0400 Subject: [PATCH] livecheck: fix parent reference handling --- Library/Homebrew/livecheck/livecheck.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index 13effefbb0..8370b23c59 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -895,9 +895,9 @@ module Homebrew block_provided: livecheck_strategy_block.present?, ) strategy = Strategy.from_symbol(livecheck_strategy) || strategies.first - next unless strategy + next if strategy.blank? && livecheck_reference != :parent - strategy_name = livecheck_strategy_names(strategy) + strategy_name = livecheck_strategy_names(strategy) if strategy.present? if strategy.respond_to?(:preprocess_url) url = strategy.preprocess_url(url)