From 5f95ca725923890a722be99a1a29b9122cf4b2db Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sat, 25 Nov 2023 13:38:37 +0000 Subject: [PATCH] tap: don't display file info for uninstalled taps --- Library/Homebrew/tap.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 5512133cd04cb..965493574667f 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -734,13 +734,13 @@ def to_hash "installed" => installed?, "official" => official?, "formula_names" => formula_names, - "formula_files" => formula_files.map(&:to_s), "cask_tokens" => cask_tokens, - "cask_files" => cask_files.map(&:to_s), - "command_files" => command_files.map(&:to_s), } if installed? + hash["formula_files"] = formula_files.map(&:to_s) + hash["cask_files"] = cask_files.map(&:to_s) + hash["command_files"] = command_files.map(&:to_s) hash["remote"] = remote hash["custom_remote"] = custom_remote? hash["private"] = private?