summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:28:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:28:25 +0000
commitdc2ee7693c79bd201043b22c24a353f816f8c748 (patch)
tree0a2992ce84f4c041b7df40d31609c36a53fe9e80
parent8e3d0354a5c22da9ecbeeed77b5c1ebf405a76b0 (diff)
downloadredmine-dc2ee7693c79bd201043b22c24a353f816f8c748.tar.gz
redmine-dc2ee7693c79bd201043b22c24a353f816f8c748.zip
cleanup: rubocop: fix Style/MultilineIfModifier in test/mocks/open_id_authentication_mock.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19206 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/mocks/open_id_authentication_mock.rb18
2 files changed, 10 insertions, 9 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index cb522dcc5..dbf07f338 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -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:
diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb
index 59bd585c1..d2c04c4bc 100644
--- a/test/mocks/open_id_authentication_mock.rb
+++ b/test/mocks/open_id_authentication_mock.rb
@@ -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