]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideArrayLiteralBrackets in test/mocks/open_id_au...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:33 +0000 (05:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:33 +0000 (05:26 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19229 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/mocks/open_id_authentication_mock.rb

index 386de908b5ab16a34451973acdf10ce6b5f64681..82c105443868a1256dc6ae121b29d8906643a931 100644 (file)
@@ -281,7 +281,6 @@ Layout/SpaceInsideArrayLiteralBrackets:
     - 'app/models/query.rb'
     - 'lib/diff.rb'
     - 'lib/redmine/i18n.rb'
-    - 'test/mocks/open_id_authentication_mock.rb'
     - 'test/unit/mailer_localisation_test.rb'
     - 'test/unit/mailer_test.rb'
     - 'test/unit/search_test.rb'
index dcc8ed441299f90566d69d14476027f327d62725..a6d5cd030cd2a7b0bf047787f0ab023bb592f2a7 100644 (file)
@@ -43,7 +43,7 @@ module OpenIdAuthentication
   private
 
   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', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional]
+      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]
   end
 end