From dc895cec9d8a84af89ce2501db234dff33c757e2 Mon Sep 17 00:00:00 2001 From: T Date: Mon, 4 Aug 2025 15:34:23 -0600 Subject: timesheet and unified reports --- internal/reports/pdf_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/reports/pdf_test.go') diff --git a/internal/reports/pdf_test.go b/internal/reports/pdf_test.go index e1c4020..b31112e 100644 --- a/internal/reports/pdf_test.go +++ b/internal/reports/pdf_test.go @@ -29,7 +29,7 @@ func TestTypstTemplateCompilation(t *testing.T) { if err != nil { t.Fatalf("Failed to create temp directory: %v", err) } - defer os.RemoveAll(tempDir) + defer func() { _ = os.RemoveAll(tempDir) }() // Copy test data to temp directory testDataPath := filepath.Join("testdata", "invoice_test_data.json") @@ -104,7 +104,7 @@ func TestGenerateInvoicePDF(t *testing.T) { if err != nil { t.Fatalf("Failed to create temp directory: %v", err) } - defer os.RemoveAll(tempDir) + defer func() { _ = os.RemoveAll(tempDir) }() outputPath := filepath.Join(tempDir, "test-invoice.pdf") -- cgit v1.2.3