]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/LeadingCommentSpace in lib/redmine/scm/adapters...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 31 Aug 2019 05:53:32 +0000 (05:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 31 Aug 2019 05:53:32 +0000 (05:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18417 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 7bbd5a3b25330c56162c83d6dca9ea27c70a6849..85150f429ab83f17298bfebdd6a761b53e4651af 100644 (file)
@@ -319,7 +319,6 @@ Layout/LeadingCommentSpace:
     - 'app/controllers/repositories_controller.rb'
     - 'app/models/repository.rb'
     - 'lib/diff.rb'
-    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
     - 'lib/redmine/scm/adapters/git_adapter.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
     - 'test/integration/api_test/issues_test.rb'
index e41b949cff6fa225d3993e3737699ac71958039a..97099711805f0675ca3a1e3bf24fadd23fec6bfc 100644 (file)
@@ -182,9 +182,9 @@ module Redmine
                   entry_name = normalize_path(File.basename($1))
                   logger.debug("Path #{entry_path} <=> Name #{entry_name}")
                 elsif /^head: (.+)$/ =~ line
-                  entry_headRev = $1 #unless entry.nil?
+                  entry_headRev = $1
                 elsif /^symbolic names:/.match?(line)
-                  state = "symbolic" #unless entry.nil?
+                  state = "symbolic"
                 elsif /^#{STARTLOG}/.match?(line)
                   commit_log = ""
                   state      = "revision"