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
|
||||
organization = Setting.get('organization')
|
||||
if organization then
|
||||
if organization
|
||||
mail['Organization'] = organization.to_s
|
||||
end
|
||||
|
||||
|
|
|
@ -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' )
|
||||
|
|
Loading…
Reference in a new issue