diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 15:54:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 15:54:59 +0000 |
commit | 5ac2471a7af987a430cce8eae36ada30524e6320 (patch) | |
tree | 0ed642d66cbb9145a1b016969674d3a3d3b2c11a /lib | |
parent | f077a0a480fedc2ef55b7da6ab455636a7905b9a (diff) | |
download | redmine-5ac2471a7af987a430cce8eae36ada30524e6320.tar.gz redmine-5ac2471a7af987a430cce8eae36ada30524e6320.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diff.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff.rb b/lib/diff.rb index 5c6eb4380..ca451ddf0 100644 --- a/lib/diff.rb +++ b/lib/diff.rb @@ -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 |