Skip to content

Commit

Permalink
Merge pull request #16256 from Bo98/tap-json-fix
Browse files Browse the repository at this point in the history
tap: don't display file info for uninstalled taps
  • Loading branch information
apainintheneck committed Nov 25, 2023
2 parents dbcb475 + 5f95ca7 commit 251a098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/tap.rb
Expand Up @@ -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?
Expand Down

0 comments on commit 251a098

Please sign in to comment.