diff --git a/wc.rb b/wc.rb index 7cc5787..97b172f 100644 --- a/wc.rb +++ b/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