Permalink
Browse files

Merge pull request #4 from demonbane/master

Updated check to use #detect
  • Loading branch information...
2 parents b50cefb + 58e829a commit 9ad57c6eca967a0f6cbe4175239533e25a4ca982 @trotter trotter committed May 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 amiworkingforgithubnow.rb
@@ -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

0 comments on commit 9ad57c6

Please sign in to comment.