Incorporate review comments
This commit is contained in:
parent
82d7a3a3dd
commit
489d241c8d
|
@ -29,8 +29,7 @@ module Bitbucket
|
|||
end
|
||||
|
||||
def representation_class(type)
|
||||
class_name = "Bitbucket::Representation::#{type.to_s.camelize}"
|
||||
class_name.constantize
|
||||
class_name = Bitbucket::Representation.const_get(type.to_s.camelize)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ module OmniAuth
|
|||
end
|
||||
|
||||
def primary_email
|
||||
primary = emails.find{ |i| i['is_primary'] && i['is_confirmed'] }
|
||||
primary = emails.find { |i| i['is_primary'] && i['is_confirmed'] }
|
||||
primary && primary['email'] || nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue