Skip to content

Commit cd3bb67

Browse files
committed
fix(lint): suppress errcheck on fmt.Fprintf in setInitUsage
golangci-lint's errcheck flagged the unchecked return value of fmt.Fprintf(w, ...) inside the setInitUsage closure. Add the standard _, _ = discard prefix to match the rest of the file. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 70d1a81 commit cd3bb67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/mdsmith/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
func setInitUsage(fs *flag.FlagSet, w io.Writer) {
2424
fs.SetOutput(w)
2525
fs.Usage = func() {
26-
fmt.Fprintf(w,
26+
_, _ = fmt.Fprintf(w,
2727
"Usage: mdsmith init [--starter <name>] [--from-markdownlint[=path]] [--add <pack>] [--force] [--list]\n\n"+
2828
"Write .mdsmith.yml in the current directory and, optionally, scaffold\n"+
2929
"additive .mdsmith/ packs beside it.\n\n"+

0 commit comments

Comments
 (0)