aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-01-15 15:15:16 -0500
committerAdnan Maolood <[email protected]>2021-01-15 15:18:00 -0500
commit31de8d49b0d0a1d75addabfb2063b2a2176f19ea (patch)
tree93a85ecdd60e2c16c92ff3d041986bd0a82eb3f8 /doc.go
parentfs: Remove unused import (diff)
downloadgo-gemini-31de8d49b0d0a1d75addabfb2063b2a2176f19ea.tar.xz
go-gemini-31de8d49b0d0a1d75addabfb2063b2a2176f19ea.zip
Guarantee that (*Response).Body is not nilv0.1.13
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc.go b/doc.go
index f90d6d3..9dbc599 100644
--- a/doc.go
+++ b/doc.go
@@ -8,10 +8,7 @@ Client is a Gemini client.
if err != nil {
// handle error
}
- if resp.Body != nil {
- defer resp.Body.Close()
- // ...
- }
+ defer resp.Body.Close()
// ...
Server is a Gemini server.