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:
parent
3aef778342
commit
3b379c076d
@ -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
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user