Commit 036f407d by Anthony Woods

gofmt

parent 2c60dbd4
...@@ -16,9 +16,9 @@ var IoHelper m.IoUtil = IoUtilImp{} ...@@ -16,9 +16,9 @@ var IoHelper m.IoUtil = IoUtilImp{}
func ListAllPlugins(repoUrl string) (m.PluginRepo, error) { func ListAllPlugins(repoUrl string) (m.PluginRepo, error) {
fullUrl := repoUrl + "/repo" fullUrl := repoUrl + "/repo"
res, err := goreq.Request{Uri: fullUrl, MaxRedirects: 3}.Do() res, err := goreq.Request{Uri: fullUrl, MaxRedirects: 3}.Do()
if err != nil { if err != nil {
return m.PluginRepo{}, err return m.PluginRepo{}, err
} }
if res.StatusCode != 200 { if res.StatusCode != 200 {
return m.PluginRepo{}, fmt.Errorf("Could not access %s statuscode %v", fullUrl, res.StatusCode) return m.PluginRepo{}, fmt.Errorf("Could not access %s statuscode %v", fullUrl, res.StatusCode)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment