Skip to content

Commit

Permalink
Remove unneccessary #try
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Nov 12, 2012
1 parent 2029b01 commit 24c0dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/contexts/session_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def update_access_token(credentials)
end

def update_privilege(provider)
if provider == 'github' && Settings.github.try(:organizations).present?
if provider == 'github' && Settings.github.organizations.present?
organizations.each do |org|
if org['login'].in?(Settings.github.organizations || [])
user.member = true
Expand Down

0 comments on commit 24c0dcf

Please sign in to comment.