From 2c541adbbb2c3459028e7ad7c64d56eefd795453 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 1 Sep 2025 12:32:33 +0800 Subject: [PATCH] Fix formatting inconsistencies in test files by removing unnecessary blank lines - Cleaned up the TestJobCRUD, TestCategoryCRUD, and TestLogCRUD functions in data_test.go by removing extra blank lines, improving code readability and consistency. --- job/data_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/job/data_test.go b/job/data_test.go index 7cc02ccc..ed967309 100644 --- a/job/data_test.go +++ b/job/data_test.go @@ -41,7 +41,7 @@ func TestJobCRUD(t *testing.T) { CreatedAt: time.Now(), UpdatedAt: time.Now(), } - + // Ensure cleanup even if test fails defer func() { job.RemoveJobs([]string{testJob.JobID}) @@ -156,7 +156,7 @@ func TestCategoryCRUD(t *testing.T) { CreatedAt: time.Now(), UpdatedAt: time.Now(), } - + // Ensure cleanup even if test fails defer func() { job.RemoveCategories([]string{testCategory.CategoryID}) @@ -398,7 +398,7 @@ func TestLogCRUD(t *testing.T) { if err != nil { t.Fatalf("Failed to create test job: %v", err) } - + // Ensure cleanup even if test fails defer func() { job.RemoveJobs([]string{testJob.JobID})