From b8f3c6ab5786fcb48b66890ff1f8bbbdc44171df Mon Sep 17 00:00:00 2001 From: Olemis Lang Date: Tue, 7 Jan 2020 16:43:56 -0500 Subject: [PATCH] [util] refs #279 - Fix bytes:Buffer.WriteString returns two values --- src/util/textutil.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/textutil.go b/src/util/textutil.go index 455bb681..d344ca9f 100644 --- a/src/util/textutil.go +++ b/src/util/textutil.go @@ -55,9 +55,9 @@ func IndentMessageLines(message string, longestLabelLen int) string { // no need to align first line because it starts at the correct location (after the label) if i != 0 { // append alignLen+1 spaces to align with "{{longestLabel}}:" before adding tab - _ = outBuf.WriteString("\n\t" + strings.Repeat(" ", longestLabelLen+1) + "\t") + _, _ = outBuf.WriteString("\n\t" + strings.Repeat(" ", longestLabelLen+1) + "\t") } - _ = outBuf.WriteString(scanner.Text()) + _, _ = outBuf.WriteString(scanner.Text()) } return outBuf.String()