From c132f7ee5147ebc2439f659934240922a894e766 Mon Sep 17 00:00:00 2001 From: Will Ledingham Date: Mon, 29 Jul 2019 13:29:53 -0400 Subject: [PATCH] more edits --- pkg/config/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 5465bfb2..d24672dd 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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 {