Commit a45f7262 authored by C. Morgan Hamill's avatar C. Morgan Hamill
Browse files

Clean up of `name` fallback code.

Don't use `unless` for the conditional.
Avoid double-quotes where possible.
parent 3af4d33bec05
......@@ -65,10 +65,10 @@ def email
end
def name
unless auth.info.name.nil?
auth.info.name.to_s.force_encoding("utf-8")
if !auth.info.name.nil?
auth.info.name.to_s.force_encoding('utf-8')
else
"#{auth.info.first_name} #{auth.info.last_name}".force_encoding("utf-8")
"#{auth.info.first_name} #{auth.info.last_name}".force_encoding('utf-8')
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment