Skip to content

Commit

Permalink
fix selfupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Dakkak committed Mar 17, 2017
1 parent a05d983 commit 261fb53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd/selfupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -64,8 +58,6 @@ var selfUpdateCmd = &cobra.Command{
fmt.Println(err)
os.Exit(4)
}

fmt.Println("Self Update Finished")
},
}

Expand Down

0 comments on commit 261fb53

Please sign in to comment.