From 14e0a6bdba5a6b49741cc131021fcf5c0b873c98 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 31 Dec 2017 01:34:39 +0000 Subject: Use reverse_each instead of reverse.each (#27671). Patch by Timur Tarasenko. git-svn-id: http://svn.redmine.org/redmine/trunk@17137 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/diff.rb') diff --git a/lib/diff.rb b/lib/diff.rb index 9e1653f14..90adc7e33 100644 --- a/lib/diff.rb +++ b/lib/diff.rb @@ -32,7 +32,7 @@ module RedmineDiff aelem = a[aindex] next unless bmatches.has_key? aelem k = nil - bmatches[aelem].reverse.each { |bindex| + bmatches[aelem].reverse_each { |bindex| if k && (thresh[k] > bindex) && (thresh[k-1] < bindex) thresh[k] = bindex else -- cgit v1.2.3