diff options
| author | Adam Vandenberg | 2014-05-18 15:33:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-18 15:33:43 -0700 |
| commit | 48a7981c78fb99cc3e878c60a02e076430ab9d37 (patch) | |
| tree | 753fcc25791a1105bc16e25627acb41f78fb63fc /Library/Homebrew/cmd | |
| parent | 16c073a1531057c7f8244a2694d0923986b79d74 (diff) | |
| download | brew-48a7981c78fb99cc3e878c60a02e076430ab9d37.tar.bz2 | |
always use a top-level array for info JSON
Closes Homebrew/homebrew#29318.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index ef8e2ac52..7063fd60c 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -49,11 +49,7 @@ module Homebrew extend self ARGV.formulae end json = ff.map {|f| f.to_hash} - if json.size == 1 - puts Utils::JSON.dump(json.pop) - else - puts Utils::JSON.dump(json) - end + puts Utils::JSON.dump(json) end def github_fork |
