Skip to content

Commit

Permalink
[util] refs #279 - Fix bytes:Buffer.WriteString returns two values
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Jan 7, 2020
1 parent 4ea5f3c commit b8f3c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/textutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b8f3c6a

Please sign in to comment.