aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
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.