Skip to content

Commit 261fb53

Browse files
author
Abdul Dakkak
committed
fix selfupdate
1 parent a05d983 commit 261fb53

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmd/selfupdate.go

-8
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ func (httpRequester *HTTPRequester) Fetch(url string) (io.ReadCloser, error) {
3131
return nil, fmt.Errorf("bad http status from %s: %v", url, resp.Status)
3232
}
3333

34-
defer func() {
35-
if resp.Body != nil {
36-
resp.Body.Close()
37-
}
38-
}()
39-
4034
return resp.Body, nil
4135
}
4236

@@ -64,8 +58,6 @@ var selfUpdateCmd = &cobra.Command{
6458
fmt.Println(err)
6559
os.Exit(4)
6660
}
67-
68-
fmt.Println("Self Update Finished")
6961
},
7062
}
7163

0 commit comments

Comments
 (0)