From 773da6323dddb35c574f4e00b681a4104594adc2 Mon Sep 17 00:00:00 2001 From: Oliver Jakoubek Date: Wed, 14 Jan 2026 21:24:46 +0100 Subject: [PATCH] gofmt --- client_test.go | 10 +++++----- tasks.go | 14 +++++++------- tasks_test.go | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client_test.go b/client_test.go index abf85ee..f9beba8 100644 --- a/client_test.go +++ b/client_test.go @@ -458,11 +458,11 @@ func TestCalculateRetryDelay(t *testing.T) { attempt int expected time.Duration }{ - {1, 200 * time.Millisecond}, // 100ms * 2^1 - {2, 400 * time.Millisecond}, // 100ms * 2^2 - {3, 800 * time.Millisecond}, // 100ms * 2^3 - {4, 1 * time.Second}, // capped at MaxDelay - {5, 1 * time.Second}, // capped at MaxDelay + {1, 200 * time.Millisecond}, // 100ms * 2^1 + {2, 400 * time.Millisecond}, // 100ms * 2^2 + {3, 800 * time.Millisecond}, // 100ms * 2^3 + {4, 1 * time.Second}, // capped at MaxDelay + {5, 1 * time.Second}, // capped at MaxDelay } for _, tc := range tests { diff --git a/tasks.go b/tasks.go index 9198c7b..50f2968 100644 --- a/tasks.go +++ b/tasks.go @@ -54,13 +54,13 @@ func (s *TaskService) Get(ctx context.Context, taskID int) (*Task, error) { // CreateTaskRequest represents the request body for creating a task. type CreateTaskRequest struct { - Content string `json:"content"` - ParentID int `json:"parent_id,omitempty"` - Position int `json:"position,omitempty"` - Due string `json:"due_date,omitempty"` - Priority int `json:"priority,omitempty"` - Tags string `json:"tags,omitempty"` - Repeat string `json:"repeat,omitempty"` + Content string `json:"content"` + ParentID int `json:"parent_id,omitempty"` + Position int `json:"position,omitempty"` + Due string `json:"due_date,omitempty"` + Priority int `json:"priority,omitempty"` + Tags string `json:"tags,omitempty"` + Repeat string `json:"repeat,omitempty"` } // createTaskWrapper wraps the task fields for the nested JSON format diff --git a/tasks_test.go b/tasks_test.go index 40b508d..beaa540 100644 --- a/tasks_test.go +++ b/tasks_test.go @@ -480,9 +480,9 @@ func TestTasks_Create_RealAPIFormat(t *testing.T) { ChecklistID: 1, Content: content, Status: StatusOpen, - Priority: 0, // Priority NOT set (ignored) - DueDateRaw: "", // Due date NOT set (ignored) - TagsAsText: "", // Tags NOT set (ignored) + Priority: 0, // Priority NOT set (ignored) + DueDateRaw: "", // Due date NOT set (ignored) + TagsAsText: "", // Tags NOT set (ignored) CreatedAt: NewAPITime(time.Now()), UpdatedAt: NewAPITime(time.Now()), }