Skip to content

Commit 29466f8

Browse files
committed
linter change
1 parent 2a722a6 commit 29466f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mage/args_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Usage:
478478
479479
mage flagdocs <name> [<flags>]
480480
481-
Flags:
481+
Flags:
482482
483483
-greeting=<string> the message to append to the name
484484
-repeat=<int> the number of times to repeat

parse/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ func (f Function) FlagDocsString() string {
206206
_, _ = buf.WriteString("Flags:\n\n")
207207
for _, e := range entries {
208208
if e.comment != "" {
209-
_, _ = buf.WriteString(fmt.Sprintf("\t%-*s %s\n", maxLen, e.label, e.comment))
209+
_, _ = fmt.Fprintf(&buf, "\t%-*s %s\n", maxLen, e.label, e.comment)
210210
} else {
211-
_, _ = buf.WriteString(fmt.Sprintf("\t%s\n", e.label))
211+
_, _ = fmt.Fprintf(&buf, "\t%s\n", e.label)
212212
}
213213
}
214214
_, _ = buf.WriteString("\n")

0 commit comments

Comments
 (0)