Corrected with rubocop cop 'Style/MultilineIfThen'.

This commit is contained in:
Thorsten Eckel 2015-04-30 20:16:25 +02:00
parent 34fdfc7072
commit 504f8b6019
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ module Channel::EmailBuild
# set organization
organization = Setting.get('organization')
if organization then
if organization
mail['Organization'] = organization.to_s
end

View file

@ -245,7 +245,7 @@ returns
def self.create_from_hash!(hash)
url = ''
if hash['info']['urls'] then
if hash['info']['urls']
url = hash['info']['urls']['Website'] || hash['info']['urls']['Twitter'] || ''
end
roles = Role.where( name: 'Customer' )