diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-11 05:50:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-11 05:50:51 +0000 |
commit | f26590189b79a0f8d5ce99acfe36b6d5c3c30adf (patch) | |
tree | 3f67b98fddc20110fe1c09612eef505cfc214b85 | |
parent | cf8232b4ca44c66fa4685ee205c8c51af9a2fe03 (diff) | |
download | redmine-f26590189b79a0f8d5ce99acfe36b6d5c3c30adf.tar.gz redmine-f26590189b79a0f8d5ce99acfe36b6d5c3c30adf.zip |
code cleanup: rubocop: fix Layout/SpaceInsideReferenceBrackets in lib/redmine/scm/adapters/subversion_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18447 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | lib/redmine/scm/adapters/subversion_adapter.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 97b36778f..35658a1e1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -492,7 +492,6 @@ Layout/SpaceInsideRangeLiteral: # SupportedStylesForEmptyBrackets: space, no_space Layout/SpaceInsideReferenceBrackets: Exclude: - - 'lib/redmine/scm/adapters/subversion_adapter.rb' - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb' # Cop supports --auto-correct. diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index 4fe06119a..9712de09c 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -138,7 +138,7 @@ module Redmine begin doc = parse_xml(output) each_xml_element(doc['properties']['target'], 'property') do |property| - properties[ property['name'] ] = property['__content__'].to_s + properties[property['name']] = property['__content__'].to_s end rescue end |