aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorDaniel Lee Harple2013-05-18 08:34:28 -0400
committerJack Nagel2013-05-22 19:53:05 -0500
commit471502bc06e8dde06618b30885d21d10c53528e5 (patch)
tree55812e3363ac7e3a0c3613731442dd596aa39560 /Library/Contributions
parent08388b149e5a45d21214170a038a118eeaba850d (diff)
downloadbrew-471502bc06e8dde06618b30885d21d10c53528e5.tar.bz2
Remove unnecessary rescue-all exception handling
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Contributions')
-rwxr-xr-xLibrary/Contributions/cmd/brew-ls-taps.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Contributions/cmd/brew-ls-taps.rb b/Library/Contributions/cmd/brew-ls-taps.rb
index 600e0ad58..98c14dccf 100755
--- a/Library/Contributions/cmd/brew-ls-taps.rb
+++ b/Library/Contributions/cmd/brew-ls-taps.rb
@@ -1,16 +1,13 @@
require 'vendor/multi_json'
GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f|
- begin
- MultiJson.decode(f.read)["repositories"].each do |repo|
- if repo['name'] =~ /^homebrew-(\S+)$/
- puts tap = if repo['username'] == "Homebrew"
- "homebrew/#{$1}"
- else
- repo['username']+"/"+$1
- end
+ MultiJson.decode(f.read)["repositories"].each do |repo|
+ if repo['name'] =~ /^homebrew-(\S+)$/
+ puts tap = if repo['username'] == "Homebrew"
+ "homebrew/#{$1}"
+ else
+ repo['username']+"/"+$1
end
end
- rescue
end
end