1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-23 14:28:25 +00:00
parent 8e3d0354a5
commit dc2ee7693c
2 changed files with 10 additions and 9 deletions

View 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:

View 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?)
unless options[:required].nil?
options[:required].each do |field|
extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
end unless options[:required].nil?
end
end
unless options[:optional].nil?
options[:optional].each do |field|
extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]
end unless options[:optional].nil?
end
end
end
yield Result[:successful], identity_url, extension_response_fields