From a156547e5e9f7e20cba41f1e17e529c7cbbb0186 Mon Sep 17 00:00:00 2001 From: Victor Koronen Date: Sat, 8 Aug 2015 17:15:06 +0200 Subject: Fix Style/For --- lib/bundler/similarity_detector.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/bundler/similarity_detector.rb b/lib/bundler/similarity_detector.rb index e6921393b1..624238552c 100644 --- a/lib/bundler/similarity_detector.rb +++ b/lib/bundler/similarity_detector.rb @@ -38,13 +38,13 @@ module Bundler fill = [0] * (this.length - 1) # Initialize first column values - for i in 1..that.length + (1..that.length).each do |i| dm[i] = [i * del, fill.flatten] end # populate matrix - for i in 1..that.length - for j in 1..this.length + (1..that.length).each do |i| + (1..this.length).each do |j| # critical comparison dm[i][j] = [ dm[i - 1][j - 1] + (this[j - 1] == that[i - 1] ? 0 : sub), -- cgit v1.2.1