mirror of https://github.com/containers/podman.git
Add comment to clarify error handling intention
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
parent
b7987ca2ba
commit
ab8e49d74b
|
@ -67,6 +67,7 @@ func NewGenericDownloader(vmType, vmName, pullPath string) (DistributionDownload
|
||||||
func supportedURL(path string) (url *url2.URL) {
|
func supportedURL(path string) (url *url2.URL) {
|
||||||
getURL, err := url2.Parse(path)
|
getURL, err := url2.Parse(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
// ignore error, probably not a URL, fallback & treat as file path
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue