Skip to content

Commit

Permalink
better ruby dialect.
Browse files Browse the repository at this point in the history
  • Loading branch information
beenhero committed Nov 1, 2016
1 parent 6482903 commit 32c3eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/weibo.rb
Expand Up @@ -26,7 +26,7 @@ class Weibo < OmniAuth::Strategies::OAuth2
:description => raw_info['description'],
:urls => {
'Blog' => raw_info['url'],
'Weibo' => [nil, ""].include?(raw_info['domain']) ? "http://weibo.com/u/#{raw_info['id']}" : "http://weibo.com/#{raw_info['domain']}",
'Weibo' => raw_info['domain'].empty? ? "http://weibo.com/u/#{raw_info['id']}" : "http://weibo.com/#{raw_info['domain']}",
}
}
end
Expand Down

0 comments on commit 32c3eef

Please sign in to comment.