summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVictor Koronen <koronen@kth.se>2015-08-08 17:13:03 +0200
committerVictor Koronen <koronen@kth.se>2015-08-14 12:29:44 +0200
commit686324728af2b3f85238504c527ea57a225d5b42 (patch)
tree2f7cfb4dddb7cf0f4d902dc957a5691ba08b6471 /lib
parenta43b23955edec4ea4913f0d6960930f6b6cd9516 (diff)
downloadbundler-686324728af2b3f85238504c527ea57a225d5b42.tar.gz
Fix Style/IndentArray
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli.rb18
-rw-r--r--lib/bundler/similarity_detector.rb9
2 files changed, 13 insertions, 14 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 00df870e28..150df56c7f 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -48,15 +48,15 @@ module Bundler
end
manpages = %w(
- bundle
- bundle-config
- bundle-exec
- bundle-gem
- bundle-install
- bundle-package
- bundle-update
- bundle-platform
- gemfile.5)
+ bundle
+ bundle-config
+ bundle-exec
+ bundle-gem
+ bundle-install
+ bundle-package
+ bundle-update
+ bundle-platform
+ gemfile.5)
if manpages.include?(command)
root = File.expand_path("../man", __FILE__)
diff --git a/lib/bundler/similarity_detector.rb b/lib/bundler/similarity_detector.rb
index de2de05992..e6921393b1 100644
--- a/lib/bundler/similarity_detector.rb
+++ b/lib/bundler/similarity_detector.rb
@@ -47,11 +47,10 @@ module Bundler
for j in 1..this.length
# critical comparison
dm[i][j] = [
- dm[i - 1][j - 1] +
- (this[j - 1] == that[i - 1] ? 0 : sub),
- dm[i][j - 1] + ins,
- dm[i - 1][j] + del
- ].min
+ dm[i - 1][j - 1] + (this[j - 1] == that[i - 1] ? 0 : sub),
+ dm[i][j - 1] + ins,
+ dm[i - 1][j] + del
+ ].min
end
end