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?