Skip to content

Commit

Permalink
more edits
Browse files Browse the repository at this point in the history
  • Loading branch information
willfairwinds committed Jul 30, 2019
1 parent 2049698 commit e4fe5ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,12 @@ func ParseFile(path string) (Configuration, error) {
//path is a url
response, err := http.Get(path)
rawBytes, err = ioutil.ReadAll(response.Body)
if err != nil {
return Configuration{}, err
}
} else {
//path is local
rawBytes, err = ioutil.ReadFile(path)
if err != nil {
return Configuration{}, err
}
}
if err != nil {
return Configuration{}, err
}
return Parse(rawBytes)
}
Expand Down

0 comments on commit e4fe5ab

Please sign in to comment.