Fixed rubocops.
This commit is contained in:
parent
27081708b1
commit
98cba4239c
3 changed files with 4 additions and 6 deletions
|
@ -39,7 +39,6 @@ returns
|
|||
data[ self.class.to_app_model ][ id ] = attributes
|
||||
end
|
||||
|
||||
|
||||
return data if !self['created_by_id'] && !self['updated_by_id']
|
||||
%w(created_by_id updated_by_id).each {|local_user_id|
|
||||
next if !self[ local_user_id ]
|
||||
|
|
|
@ -18,13 +18,13 @@ returns
|
|||
def self.available_driver
|
||||
if Setting.get('system_online_service')
|
||||
return {
|
||||
:inbound => ['imap', 'pop3'],
|
||||
:outbound => ['smtp'],
|
||||
inbound: %w(imap pop3),
|
||||
outbound: %w(smtp),
|
||||
}
|
||||
end
|
||||
{
|
||||
:inbound => ['imap', 'pop3'],
|
||||
:outbound => ['smtp', 'sendmail'],
|
||||
inbound: %w(imap pop3),
|
||||
outbound: %w(smtp sendmail),
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ or
|
|||
result: 'failed',
|
||||
message: "Unknown adapter '#{adapter}'",
|
||||
}
|
||||
return
|
||||
end
|
||||
|
||||
# looking for verify email
|
||||
|
|
Loading…
Reference in a new issue