From ec6c35702aa1ce3f05800ad4cc22d1ab104b25b5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 15 May 2026 12:09:44 +0200 Subject: [PATCH] Ignore io.WriteString results in Format Assign io.WriteString's return values to blank identifiers in Untrusted.Format to explicitly ignore them. This silences linters/tools (e.g., errcheck) that flag unchecked return values when writing the fixed string. --- cmd/passlint/testdata/src/taint/taint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/passlint/testdata/src/taint/taint.go b/cmd/passlint/testdata/src/taint/taint.go index 76c5a3d..0535934 100644 --- a/cmd/passlint/testdata/src/taint/taint.go +++ b/cmd/passlint/testdata/src/taint/taint.go @@ -43,5 +43,5 @@ func (u Untrusted) Tags() map[string]string { } func (u Untrusted) Format(f fmt.State, verb rune) { - io.WriteString(f, "") + _, _ = io.WriteString(f, "") }