Add comment to clarify error handling intention

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
Jason T. Greene 2023-01-29 13:43:03 -06:00
parent b7987ca2ba
commit ab8e49d74b
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func NewGenericDownloader(vmType, vmName, pullPath string) (DistributionDownload
func supportedURL(path string) (url *url2.URL) {
getURL, err := url2.Parse(path)
if err != nil {
// ignore error, probably not a URL, fallback & treat as file path
return nil
}