summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-12 08:36:05 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-12 08:36:05 +0000
commit6e21ae720909f9980e58c9411fb9ed8a81f06833 (patch)
treecdf11a115134b45344fe180f829c1686981b47b1 /lib/redmine/scm/adapters
parentb224d878c33d24df81650667d18035652a18911f (diff)
downloadredmine-6e21ae720909f9980e58c9411fb9ed8a81f06833.tar.gz
redmine-6e21ae720909f9980e58c9411fb9ed8a81f06833.zip
Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters')
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index 92bae7a06..b8cc97001 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -94,7 +94,7 @@ module Redmine
cmd_args << path_with_proj(path)
scm_cmd(*cmd_args) do |io|
io.each_line() do |line|
- fields = line.chop.split('/',-1)
+ fields = line.chop.split('/', -1)
logger.debug(">>InspectLine #{fields.inspect}")
if fields[0]!="D"
time = nil
@@ -362,11 +362,11 @@ module Redmine
end
def normalize_cvs_path(path)
- normalize_path(path.gsub("Attic/",''))
+ normalize_path(path.gsub("Attic/", ''))
end
def normalize_path(path)
- path.sub(/^(\/)*(.*)/,'\2').sub(/(.*)(,v)+/,'\1')
+ path.sub(/^(\/)*(.*)/, '\2').sub(/(.*)(,v)+/, '\1')
end
def path_with_proj(path)