aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMike McQuaid2016-10-22 15:25:28 +0100
committerGitHub2016-10-22 15:25:28 +0100
commitc521ff4a94328d02d345b13d65f3c5942cf613e9 (patch)
tree013d159a356dc813430d5a1dcea913a8cfe9dbed /Library/Homebrew/utils
parent59a9f0a764f5ffdb7126931672c6274b6438e7cb (diff)
parent1f963267b6bd415ce3024bb7860d5253ad8e0132 (diff)
downloadbrew-c521ff4a94328d02d345b13d65f3c5942cf613e9.tar.bz2
Merge pull request #1345 from MikeMcQuaid/rubocop-style
Update Rubocop style.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/formatter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/formatter.rb b/Library/Homebrew/utils/formatter.rb
index 4685e8c5d..8a9afb9af 100644
--- a/Library/Homebrew/utils/formatter.rb
+++ b/Library/Homebrew/utils/formatter.rb
@@ -78,9 +78,9 @@ module Formatter
rows.times do |row_index|
item_indices_for_row = row_index.step(objects.size - 1, rows).to_a
- first_n = item_indices_for_row[0...-1].map { |index|
+ first_n = item_indices_for_row[0...-1].map do |index|
objects[index] + "".rjust(col_width - object_lengths[index])
- }
+ end
# don't add trailing whitespace to last column
last = objects.values_at(item_indices_for_row.last)