Skip to content

Commit

Permalink
Fixed the megacheck issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Nov 7, 2018
1 parent 1a18493 commit 775af76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ func (b *Api) handleConfigReload(c echo.Context) error {
return c.String(http.StatusInternalServerError, "Internal Server Error")
}
res, err := http.Get(cfgURL)
defer res.Body.Close()
if err != nil {
b.Log.Error("Failed to fetch remote config file: ", err)
return c.String(http.StatusInternalServerError, "Internal Server Error")
}
defer res.Body.Close()
content, err := ioutil.ReadAll(res.Body)
if err != nil {
b.Log.Error("Error reading remote config file: ", err)
Expand Down

0 comments on commit 775af76

Please sign in to comment.