diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index c446f0a6c6..b2b1f03570 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -658,9 +658,13 @@ module Homebrew end if debug - puts "URL (strategy): #{strategy_data[:url]}" if strategy_data[:url] != url - puts "URL (final): #{strategy_data[:final_url]}" if strategy_data[:final_url] - puts "Regex (strategy): #{strategy_data[:regex].inspect}" if strategy_data[:regex] != livecheck_regex + if strategy_data[:url].present? && strategy_data[:url] != url + puts "URL (strategy): #{strategy_data[:url]}" + end + puts "URL (final): #{strategy_data[:final_url]}" if strategy_data[:final_url].present? + if strategy_data[:regex].present? && strategy_data[:regex] != livecheck_regex + puts "Regex (strategy): #{strategy_data[:regex].inspect}" + end puts "Cached?: Yes" if strategy_data[:cached] == true end