1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

code cleanup: rubocop: fix Style/EmptyLiteral in lib/redmine/scm/adapters/cvs_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18506 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-09-24 02:34:32 +00:00
parent 3aef778342
commit 3b379c076d
2 changed files with 1 additions and 6 deletions

View 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

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