Browse Source

Fixed rubocops.

Martin Edenhofer 9 years ago
parent
commit
98cba4239c
3 changed files with 4 additions and 6 deletions
  1. 0 1
      app/models/channel/assets.rb
  2. 4 4
      lib/email_helper.rb
  3. 0 1
      lib/email_helper/verify.rb

+ 0 - 1
app/models/channel/assets.rb

@@ -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 ]

+ 4 - 4
lib/email_helper.rb

@@ -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
 

+ 0 - 1
lib/email_helper/verify.rb

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