lib/omniauth/openid/gapps.rb in oa-openid-0.2.4 vs lib/omniauth/openid/gapps.rb in oa-openid-0.2.5

- old
+ new

@@ -6,27 +6,27 @@ # (looking first for Google Apps, then anything else), # we need to monkeypatch it to make it play nicely # with others. def self.discover(uri) discovered = self.default_discover(uri) - + if discovered.last.empty? - info = discover_google_apps(uri) + info = discover_google_apps(uri) return info if info end - + return discovered rescue OpenID::DiscoveryFailure => e info = discover_google_apps(uri) - + if info.nil? raise e else return info end end - + def self.discover_google_apps(uri) discovery = GoogleDiscovery.new discovery.perform_discovery(uri) end -end \ No newline at end of file +end