]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Style/MultilineIfModifier in test/mocks/open_id_authentication_...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 14:28:25 +0000 (14:28 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 14:28:25 +0000 (14:28 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19206 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/mocks/open_id_authentication_mock.rb

index cb522dcc55c76c1ba4a3c15a72bf87492fc26d21..dbf07f338eeecdc23d56c63fd57275c14ee52ae4 100644 (file)
@@ -1255,7 +1255,6 @@ Style/MultilineIfModifier:
     - 'lib/redmine/helpers/gantt.rb'
     - 'lib/redmine/wiki_formatting.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-    - 'test/mocks/open_id_authentication_mock.rb'
 
 Style/MultilineTernaryOperator:
   Exclude:
index 59bd585c1c1554f0318615da02544f74e50c384e..d2c04c4bc1b5b0f508e4cba9227595fe5216aa89 100644 (file)
@@ -21,14 +21,16 @@ module OpenIdAuthentication
 
         # Don't process registration fields unless it is requested.
         unless identity_url.include?('blank') || (options[:required].nil? && options[:optional].nil?)
-
-          options[:required].each do |field|
-            extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
-          end unless options[:required].nil?
-
-          options[:optional].each do |field|
-            extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
-          end unless options[:optional].nil?
+          unless options[:required].nil?
+            options[:required].each do |field|
+              extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
+            end
+          end
+          unless options[:optional].nil?
+            options[:optional].each do |field|
+              extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
+            end
+          end
         end
 
         yield Result[:successful], identity_url, extension_response_fields