1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-27 10:51:15 +00:00

code cleanup: rubocop: fix Performance/Casecmp in lib/redmine/scm/adapters/bazaar_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18504 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-09-21 15:54:38 +00:00
parent f66cc7db80
commit 949d80c6d2
2 changed files with 2 additions and 7 deletions

View File

@ -724,11 +724,6 @@ Naming/VariableNumber:
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- 'test/unit/project_test.rb'
# Cop supports --auto-correct.
Performance/Casecmp:
Exclude:
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
Performance/FixedSize:
Exclude:
- 'test/integration/api_test/issues_test.rb'

View File

@ -266,10 +266,10 @@ module Redmine
l = line.chomp.to_s
if l =~ /^\s*append_revisions_only\s*=\s*(\w+)\s*$/
str_aro = $1
if str_aro.upcase == "TRUE"
if str_aro.casecmp("TRUE") == 0
@aro = true
cnt += 1
elsif str_aro.upcase == "FALSE"
elsif str_aro.casecmp("FALSE") == 0
@aro = false
cnt += 1
end