]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Rails/Presence in config/initializers/30-redmine.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 Sep 2019 15:42:13 +0000 (15:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 Sep 2019 15:42:13 +0000 (15:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18521 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
config/initializers/30-redmine.rb

index ac5bd35744179545321d1424b57bd8bee6ca7b41..e06904279411d20a3535e83249d4b79596da6cee 100644 (file)
@@ -959,7 +959,6 @@ Rails/Presence:
     - 'app/controllers/activities_controller.rb'
     - 'app/helpers/application_helper.rb'
     - 'app/models/repository.rb'
-    - 'config/initializers/30-redmine.rb'
     - 'lib/redmine/codeset_util.rb'
     - 'lib/redmine/i18n.rb'
     - 'lib/redmine/scm/adapters/abstract_adapter.rb'
index 7536de48727b075407edd4081a1c6b51b234909d..73cd08052de3cea557a4ab8ce921642740b4baad 100644 (file)
@@ -14,9 +14,7 @@ end
 
 if Object.const_defined?(:OpenIdAuthentication)
   openid_authentication_store = Redmine::Configuration['openid_authentication_store']
-  OpenIdAuthentication.store =
-    openid_authentication_store.present? ?
-      openid_authentication_store : :memory
+  OpenIdAuthentication.store = openid_authentication_store.presence || :memory
 end
 
 Redmine::Plugin.load