Updated check to use #detect #4

Merged
merged 1 commit into from May 12, 2011
+1 −1
Split
@@ -18,7 +18,7 @@
myorgs = JSON.parse(http.request(req).body)["organizations"]
- if !myorgs.select {|org| org["name"].eql?("GitHub")}.empty?
+ if myorgs.detect {|org| org["name"].eql?("GitHub")}
erb :yes
else
erb :no