diff --git a/cmd/selfupdate.go b/cmd/selfupdate.go index 2c72c7b..e5f8fa1 100644 --- a/cmd/selfupdate.go +++ b/cmd/selfupdate.go @@ -31,12 +31,6 @@ func (httpRequester *HTTPRequester) Fetch(url string) (io.ReadCloser, error) { return nil, fmt.Errorf("bad http status from %s: %v", url, resp.Status) } - defer func() { - if resp.Body != nil { - resp.Body.Close() - } - }() - return resp.Body, nil } @@ -64,8 +58,6 @@ var selfUpdateCmd = &cobra.Command{ fmt.Println(err) os.Exit(4) } - - fmt.Println("Self Update Finished") }, }