fix: resolve golangci-lint errcheck and staticcheck warnings

Use t.Setenv in tests, add error return handling, and replace
WriteString(fmt.Sprintf(...)) with fmt.Fprintf.
This commit is contained in:
juanatsap
2026-03-15 20:20:20 +00:00
parent 585949b709
commit cafd117437
3 changed files with 38 additions and 59 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ func TestDefaultCVShortcut(t *testing.T) {
if err != nil || resp.StatusCode != http.StatusOK {
t.Skip("Skipping PDF generation test - server not running on localhost:1999")
}
resp.Body.Close()
_ = resp.Body.Close()
handler := newTestCVHandler(t, "localhost:1999", nil)