空行を削除
This commit is contained in:
parent
8197b50a57
commit
af7e235665
1 changed files with 2 additions and 3 deletions
5
wc.rb
5
wc.rb
|
@ -1,4 +1,3 @@
|
|||
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'optparse'
|
||||
|
@ -21,12 +20,12 @@ def input_stream_sources(input_sources, options)
|
|||
update_totals(total, stats)
|
||||
end
|
||||
max_widths = calculate_max_widths(all_stats, total_stats)
|
||||
|
||||
|
||||
all_stats.each do |source, stats|
|
||||
result = format_result(stats, max_widths, options)
|
||||
print_result(result, source)
|
||||
end
|
||||
|
||||
|
||||
print_total(total_stats, max_widths, options) if input_sources.size > 1
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue