From 6e21ae720909f9980e58c9411fb9ed8a81f06833 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 12 Aug 2024 08:36:05 +0000 Subject: 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 --- lib/redmine/scm/adapters/cvs_adapter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/redmine/scm/adapters') 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) -- cgit v1.2.3