diff options
| author | Mike McQuaid | 2016-10-22 13:32:46 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-10-22 13:32:46 +0100 |
| commit | 1f963267b6bd415ce3024bb7860d5253ad8e0132 (patch) | |
| tree | 894f15a5c863307b5fd2062330c6c3398fd36c72 /Library/Homebrew/utils | |
| parent | 5b421b93c9897dd5bae60c24bb937cccdafa5574 (diff) | |
| download | brew-1f963267b6bd415ce3024bb7860d5253ad8e0132.tar.bz2 | |
Update Rubocop style.
Another look at the current Rubocop rules and how they fit with our
existing and desired future style. Almost all of these changes were
automatic. Split some rules between formulae/brew where brew doesn't
have millions of cases that need fixed.
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/formatter.rb | 4 |
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) |
