]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/EmptyLiteral in lib/redmine/scm/adapters/cvs_adapter.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 Sep 2019 02:34:32 +0000 (02:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 24 Sep 2019 02:34:32 +0000 (02:34 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18506 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/scm/adapters/cvs_adapter.rb

index 2d5b6187fa770f7d23fe5b560ce96d87f380576f..b4a4387c3894540de9fa7bca70c32ceac8abb9f7 100644 (file)
@@ -1169,11 +1169,6 @@ Style/EmptyElse:
     - 'app/models/mail_handler.rb'
     - 'app/models/query.rb'
 
-# Cop supports --auto-correct.
-Style/EmptyLiteral:
-  Exclude:
-    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: compact, expanded
index ba6134a188690ee570965b0f8eacd1bca30106f9..6c6627935d94b51640896009d7d53a2d4ffd0f6f 100644 (file)
@@ -176,7 +176,7 @@ module Redmine
                 state      = "entry_start"
               end
               if state == "entry_start"
-                branch_map = Hash.new
+                branch_map = {}
                 if /^RCS file: #{Regexp.escape(root_url_path)}\/#{Regexp.escape(path_with_project_locale)}(.+),v$/ =~ line
                   entry_path = normalize_cvs_path($1)
                   entry_name = normalize_path(File.basename($1))