Fixed rubocops.

This commit is contained in:
Martin Edenhofer 2015-08-30 14:04:48 +02:00
parent 27081708b1
commit 98cba4239c
3 changed files with 4 additions and 6 deletions

View file

@ -39,7 +39,6 @@ returns
data[ self.class.to_app_model ][ id ] = attributes data[ self.class.to_app_model ][ id ] = attributes
end end
return data if !self['created_by_id'] && !self['updated_by_id'] return data if !self['created_by_id'] && !self['updated_by_id']
%w(created_by_id updated_by_id).each {|local_user_id| %w(created_by_id updated_by_id).each {|local_user_id|
next if !self[ local_user_id ] next if !self[ local_user_id ]

View file

@ -18,13 +18,13 @@ returns
def self.available_driver def self.available_driver
if Setting.get('system_online_service') if Setting.get('system_online_service')
return { return {
:inbound => ['imap', 'pop3'], inbound: %w(imap pop3),
:outbound => ['smtp'], outbound: %w(smtp),
} }
end end
{ {
:inbound => ['imap', 'pop3'], inbound: %w(imap pop3),
:outbound => ['smtp', 'sendmail'], outbound: %w(smtp sendmail),
} }
end end

View file

@ -74,7 +74,6 @@ or
result: 'failed', result: 'failed',
message: "Unknown adapter '#{adapter}'", message: "Unknown adapter '#{adapter}'",
} }
return
end end
# looking for verify email # looking for verify email