cleanup: rubocop: fix Layout/SpaceInsideArrayLiteralBrackets in test/mocks/open_id_authentication_mock.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19229 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-24 05:26:33 +00:00
parent b4bfc18bb4
commit b4bcf64dc7
2 changed files with 2 additions and 3 deletions

View File

@@ -281,7 +281,6 @@ Layout/SpaceInsideArrayLiteralBrackets:
- 'app/models/query.rb' - 'app/models/query.rb'
- 'lib/diff.rb' - 'lib/diff.rb'
- 'lib/redmine/i18n.rb' - 'lib/redmine/i18n.rb'
- 'test/mocks/open_id_authentication_mock.rb'
- 'test/unit/mailer_localisation_test.rb' - 'test/unit/mailer_localisation_test.rb'
- 'test/unit/mailer_test.rb' - 'test/unit/mailer_test.rb'
- 'test/unit/search_test.rb' - 'test/unit/search_test.rb'

View File

@@ -43,7 +43,7 @@ module OpenIdAuthentication
private private
def add_simple_registration_fields(open_id_response, fields) def add_simple_registration_fields(open_id_response, fields)
open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required] open_id_response.add_extension_arg('sreg', 'required', [fields[:required]].flatten * ',') if fields[:required]
open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional] open_id_response.add_extension_arg('sreg', 'optional', [fields[:optional]].flatten * ',') if fields[:optional]
end end
end end