I don't think this is needed anymore

This commit is contained in:
Megan Marsh 2018-01-09 15:53:54 -08:00
parent 2838a2371d
commit 40f0cc6dfe
1 changed files with 0 additions and 10 deletions

View File

@ -69,16 +69,6 @@ func DownloadableURL(original string) (string, error) {
}
if u.Scheme == "file" {
// Windows file handling is all sorts of tricky...
if runtime.GOOS == "windows" {
// If the path is using Windows-style slashes, URL parses
// it into the host field.
if u.Path == "" && strings.Contains(u.Host, `\`) {
u.Path = u.Host
u.Host = ""
}
}
// Only do the filepath transformations if the file appears
// to actually exist.
if _, err := os.Stat(u.Path); err == nil {