summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-09-20 08:12:18 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-09-20 08:12:18 +0000
commit464f9e09c6cde9a2fe66a18500736206ae233d0a (patch)
treea7475d61d9db84b9d7e478d82b225087655d701b
parentc7b18e70ea87c287240243aed867b3a8b51689cb (diff)
gofmt the files added in the previous commit
Only the files this session added; the other gofmt findings in internal/ predate it and are left alone rather than mixed into a feature change. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018AwnALZL6bD4VBtATDVv3B
-rw-r--r--internal/api/google_tasks_oauth_test.go1
-rw-r--r--internal/handlers/shopping_edit_test.go7
2 files changed, 3 insertions, 5 deletions
diff --git a/internal/api/google_tasks_oauth_test.go b/internal/api/google_tasks_oauth_test.go
index 3503cbb..93acd76 100644
--- a/internal/api/google_tasks_oauth_test.go
+++ b/internal/api/google_tasks_oauth_test.go
@@ -153,4 +153,3 @@ func TestDBTokenSource_NotConnected(t *testing.T) {
t.Errorf("error = %q, want it to mention not being connected", err)
}
}
-
diff --git a/internal/handlers/shopping_edit_test.go b/internal/handlers/shopping_edit_test.go
index 6d862d7..5e4f2f9 100644
--- a/internal/handlers/shopping_edit_test.go
+++ b/internal/handlers/shopping_edit_test.go
@@ -18,9 +18,9 @@ func TestParseUserItemID(t *testing.T) {
}{
{"user-42", 42, true},
{"user-1", 1, true},
- {"5f2a91bc", 0, false}, // a PlanToEat id
- {"user-", 0, false}, // malformed
- {"user-abc", 0, false}, // non-numeric
+ {"5f2a91bc", 0, false}, // a PlanToEat id
+ {"user-", 0, false}, // malformed
+ {"user-abc", 0, false}, // non-numeric
{"", 0, false},
}
for _, c := range cases {
@@ -235,4 +235,3 @@ func TestShoppingSectionCreate_UnknownStore(t *testing.T) {
t.Errorf("status %d, want 404", rec.Code)
}
}
-