Commit 8ea31945 authored by xufei's avatar xufei Committed by fisherxu

Fix comment of isHTTPSURL

parent 7bc1c676
...@@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm ...@@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm
} }
} }
// isHTTPSURL checks whether the string is parsable as an URL // isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https
func isHTTPSURL(s string) bool { func isHTTPSURL(s string) bool {
u, err := url.Parse(s) u, err := url.Parse(s)
return err == nil && u.Scheme == "https" return err == nil && u.Scheme == "https"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment