Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

refactor(handlers): drop the doc comment stranded on requirePathTabID (PIN-365)

Luigi Agosti3877a2c777bb
diff --git a/internal/handlers/tab_body_adapter.go b/internal/handlers/tab_body_adapter.go
index cc1d5872..e116ea26 100644
--- a/internal/handlers/tab_body_adapter.go
+++ b/internal/handlers/tab_body_adapter.go
@@ -25,11 +25,6 @@ func decodeJSONBody[T any](w http.ResponseWriter, r *http.Request) (T, bool) {
return req, true
}
-// requirePathTabIDMatch validates the {id} path value (required) against an
-// optional body-provided tabId, returning the resolved path tabID. ok=false
-// means an error response was already written. For typed tab handlers that call
-// an internal func directly (no JSON re-marshal) — the typed sibling of
-// withPathTabIDBody.
func requirePathTabID(w http.ResponseWriter, r *http.Request) (string, bool) {
tabID := strings.TrimSpace(r.PathValue("id"))
if tabID == "" {