From 1fee7891fd379747c3d368fc2f5893f8053d3612 Mon Sep 17 00:00:00 2001 From: Alexey Kazakov Date: Fri, 4 Oct 2024 13:54:31 -0700 Subject: [PATCH] Update pkg/proxy/proxy.go Co-authored-by: Kanika Rana <46766610+ranakan19@users.noreply.github.com> --- pkg/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/proxy.go b/pkg/proxy/proxy.go index 23348d72..e7817a4a 100644 --- a/pkg/proxy/proxy.go +++ b/pkg/proxy/proxy.go @@ -816,7 +816,7 @@ func replaceTokenInWebsocketRequest(req *http.Request, newToken string) { } // validateWorkspaceRequest checks whether the requested workspace is in the list of workspaces the user has visibility on (retrieved via the spaceLister). -// If `requestedWorkspace` is zero, then the home workspace (the one with `status.Type` set to `home`) is assumed. +// If `requestedWorkspace` is empty, then the home workspace (the one with `status.Type` set to `home`) is assumed. func validateWorkspaceRequest(requestedWorkspace string, workspaces ...toolchainv1alpha1.Workspace) error { // check workspace access isHomeWSRequested := requestedWorkspace == ""