From b0c9afa0f0f9f477d223fd2158422d9e07ecf24d Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 25 Aug 2026 02:06:37 +1000 Subject: [PATCH] chore(webui): go fix modernises boolPtr to new(value) task check's go fix pass rewrote the test helper to Go 1.26's generic new(v) and marked it //go:fix inline. Committed from the gate rather than left dirty in the tree. --- internal/webui/api_tasks_origin_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/webui/api_tasks_origin_test.go b/internal/webui/api_tasks_origin_test.go index 4350f3456..8f16b6c16 100644 --- a/internal/webui/api_tasks_origin_test.go +++ b/internal/webui/api_tasks_origin_test.go @@ -40,7 +40,7 @@ func TestAuthorizeTaskMutationOrigin(t *testing.T) { }, { name: "1b. proxied https: trust enabled via Cfg holder, X-Forwarded-Proto https, plain HTTP, Origin https", - trustForwardedCfg: boolPtr(true), + trustForwardedCfg: new(true), forwardedProto: "https", requestHost: "archie.catlow.cloud", tls: false, @@ -237,8 +237,9 @@ func TestAuthorizeTaskMutationOrigin(t *testing.T) { } } +//go:fix inline func boolPtr(b bool) *bool { - return &b + return new(b) } func TestWorkRequestOriginProxy(t *testing.T) {