1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

code cleanup: rubocop: fix Style/ParenthesesAroundCondition in lib/diff.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18836 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-22 15:54:59 +00:00
parent f077a0a480
commit 5ac2471a7a
2 changed files with 2 additions and 3 deletions

View File

@ -1144,7 +1144,6 @@ Style/ParallelAssignment:
Style/ParenthesesAroundCondition:
Exclude:
- 'app/models/repository/subversion.rb'
- 'lib/diff.rb'
- 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
- 'lib/redmine/scm/adapters/git_adapter.rb'

View File

@ -13,14 +13,14 @@ module RedmineDiff
mvector = []
# First we prune off any common elements at the beginning
while (astart <= afinish && bstart <= afinish && a[astart] == b[bstart])
while (astart <= afinish) && (bstart <= afinish) && (a[astart] == b[bstart])
mvector[astart] = bstart
astart += 1
bstart += 1
end
# now the end
while (astart <= afinish && bstart <= bfinish && a[afinish] == b[bfinish])
while (astart <= afinish) && (bstart <= bfinish) && (a[afinish] == b[bfinish])
mvector[afinish] = bfinish
afinish -= 1
bfinish -= 1