Browse Source

code cleanup: rubocop: fix Style/UnneededInterpolation in lib/redmine/scm/adapters/git_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18796 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
27dbbee75e
2 changed files with 2 additions and 3 deletions
  1. 0
    1
      .rubocop_todo.yml
  2. 2
    2
      lib/redmine/scm/adapters/git_adapter.rb

+ 0
- 1
.rubocop_todo.yml View File

@@ -1408,7 +1408,6 @@ Style/UnneededInterpolation:
- 'app/views/common/feed.atom.builder'
- 'app/views/journals/index.builder'
- 'lib/redmine/helpers/time_report.rb'
- 'lib/redmine/scm/adapters/git_adapter.rb'
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
- 'lib/redmine/wiki_formatting.rb'
- 'test/functional/versions_controller_test.rb'

+ 2
- 2
lib/redmine/scm/adapters/git_adapter.rb View File

@@ -199,7 +199,7 @@ module Redmine
cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --parents --stdin|
cmd_args << '--no-renames' if self.class.client_version_above?([2, 9])
cmd_args << "--reverse" if options[:reverse]
cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
cmd_args << "-n" << options[:limit].to_i.to_s if options[:limit]
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty?
revisions = []
if identifier_from || identifier_to
@@ -210,7 +210,7 @@ module Redmine
end
if identifier_to
git_identifier_to = scm_iconv(@path_encoding, 'UTF-8', identifier_to)
revisions[0] << "#{git_identifier_to}" if identifier_to
revisions[0] << git_identifier_to.to_s if identifier_to
end
else
unless options[:includes].blank?

Loading…
Cancel
Save