From ccd80aa4fca8dd0322057b8c2bab2218f80aeb6a Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Mon, 5 Mar 2018 14:18:04 +0100 Subject: [PATCH] Minor code reduction. --- table.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/table.go b/table.go index 887d888..c23cd71 100644 --- a/table.go +++ b/table.go @@ -618,11 +618,10 @@ ColumnLoop: // If we have space left, distribute it. if tableWidth < width { toDistribute := width - tableWidth - for index := range widths { + for index, expansion := range expansions { if expansionTotal <= 0 { break } - expansion := expansions[index] expWidth := toDistribute * expansion / expansionTotal widths[index] += expWidth tableWidth += expWidth