Corrected with rubocop cop 'Style/MultilineIfThen'.
This commit is contained in:
parent
34fdfc7072
commit
504f8b6019
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ module Channel::EmailBuild
|
||||||
|
|
||||||
# set organization
|
# set organization
|
||||||
organization = Setting.get('organization')
|
organization = Setting.get('organization')
|
||||||
if organization then
|
if organization
|
||||||
mail['Organization'] = organization.to_s
|
mail['Organization'] = organization.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ returns
|
||||||
|
|
||||||
def self.create_from_hash!(hash)
|
def self.create_from_hash!(hash)
|
||||||
url = ''
|
url = ''
|
||||||
if hash['info']['urls'] then
|
if hash['info']['urls']
|
||||||
url = hash['info']['urls']['Website'] || hash['info']['urls']['Twitter'] || ''
|
url = hash['info']['urls']['Website'] || hash['info']['urls']['Twitter'] || ''
|
||||||
end
|
end
|
||||||
roles = Role.where( name: 'Customer' )
|
roles = Role.where( name: 'Customer' )
|
||||||
|
|
Loading…
Reference in a new issue