Skip to content

Commit

Permalink
Documenting suspicious Trim statement
Browse files Browse the repository at this point in the history
  • Loading branch information
qasimwarraich committed Mar 31, 2023
1 parent 28d9d63 commit c63fb9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/livelint/check_can_access_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func (n *Livelint) canPortForward(pod apiv1.Pod, port int32, checkFunc func(uint
panic(err)
}
path := fmt.Sprintf("/api/v1/namespaces/%s/pods/%s/portforward", pod.Namespace, pod.Name)

// Sus: Does this trim make sense?
hostIP := strings.TrimLeft(n.config.Host, "htps:/")
fmt.Println(hostIP)
serverURL := url.URL{Scheme: "https", Path: path, Host: hostIP}
Expand Down

0 comments on commit c63fb9c

Please # to comment.