diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-20 22:24:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-20 22:24:47 +0900 |
| commit | aa07ba2e0a40b0097a4f9aee3c06dcbd9a749105 (patch) | |
| tree | 6b72119152e1dd17ef16703c5b2acb1dfe05c840 /backend/api/handler_test.go | |
| parent | 08ae228c45745372784017fe694d61d9ed0e2981 (diff) | |
| download | phperkaigi-2026-albatross-aa07ba2e0a40b0097a4f9aee3c06dcbd9a749105.tar.gz phperkaigi-2026-albatross-aa07ba2e0a40b0097a4f9aee3c06dcbd9a749105.tar.zst phperkaigi-2026-albatross-aa07ba2e0a40b0097a4f9aee3c06dcbd9a749105.zip | |
style(backend): modernize Go syntax with range-over-int and type inference
Use Go 1.22+ range-over-integer syntax, replace interface{} with any,
and remove redundant type parameters.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/api/handler_test.go')
| -rw-r--r-- | backend/api/handler_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/handler_test.go b/backend/api/handler_test.go index a3ca3fb..2415710 100644 --- a/backend/api/handler_test.go +++ b/backend/api/handler_test.go @@ -729,7 +729,7 @@ func TestGetGameWatchLatestStates_Empty(t *testing.T) { func TestToNullableWith(t *testing.T) { t.Run("nil value", func(t *testing.T) { - result := toNullableWith[int, string](nil, func(_ int) string { return "x" }) + result := toNullableWith(nil, func(_ int) string { return "x" }) if !result.IsNull() { t.Error("expected null for nil input") } |
