more edits

This commit is contained in:
Will Ledingham
2019-07-29 13:29:53 -04:00
parent 10025764cd
commit c132f7ee51

View File

@@ -122,8 +122,7 @@ func ParseFile(path string) (Configuration, error) {
if err != nil {
return Configuration{}, err
}
}
if strings.HasPrefix(path, "https://") || strings.HasPrefix(path, "http://") {
} else if strings.HasPrefix(path, "https://") || strings.HasPrefix(path, "http://") {
//path is a url
response, err := http.Get(path)
if err != nil {