diff --git a/act/cacheproxy/handler.go b/act/cacheproxy/handler.go index e2112766..e494b9c5 100644 --- a/act/cacheproxy/handler.go +++ b/act/cacheproxy/handler.go @@ -157,9 +157,8 @@ func (h *Handler) newReverseProxy(targetHost string) (*httputil.ReverseProxy, er func (h *Handler) ExternalURL() string { if h.cacheProxyHostOverride != "" { return h.cacheProxyHostOverride - } else { - return fmt.Sprintf("http://%s", net.JoinHostPort(h.outboundIP, strconv.Itoa(h.listener.Addr().(*net.TCPAddr).Port))) } + return fmt.Sprintf("http://%s", net.JoinHostPort(h.outboundIP, strconv.Itoa(h.listener.Addr().(*net.TCPAddr).Port))) } // Informs the proxy of a workflow run that can make cache requests.