diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 11:15:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 11:15:54 +0000 |
commit | 163e6eb6f73f94538f79ab65b4056774bbc0f7e4 (patch) | |
tree | 64bef2617925b42aa1964446fa50f81ee9c5e743 /lib/redmine | |
parent | 0fdaa963aaa861424bca0d3f321bb4406ed73e70 (diff) | |
download | redmine-163e6eb6f73f94538f79ab65b4056774bbc0f7e4.tar.gz redmine-163e6eb6f73f94538f79ab65b4056774bbc0f7e4.zip |
code cleanup: rubocop: fix Style/WhileUntilModifier in lib/redmine/unified_diff.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18759 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/unified_diff.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb index 5660fa91d..64e3f13e8 100644 --- a/lib/redmine/unified_diff.rb +++ b/lib/redmine/unified_diff.rb @@ -203,11 +203,13 @@ module Redmine if line_left.present? && line_right.present? && line_left != line_right max = [line_left.size, line_right.size].min starting = 0 - while starting < max && line_left[starting] == line_right[starting] + while starting < max && + line_left[starting] == line_right[starting] starting += 1 end ending = -1 - while ending >= -(max - starting) && (line_left[ending] == line_right[ending]) + while ending >= -(max - starting) && + (line_left[ending] == line_right[ending]) ending -= 1 end unless starting == 0 && ending == -1 |