diff options
| author | Adnan Maolood <[email protected]> | 2021-01-15 15:15:16 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-01-15 15:18:00 -0500 |
| commit | 31de8d49b0d0a1d75addabfb2063b2a2176f19ea (patch) | |
| tree | 93a85ecdd60e2c16c92ff3d041986bd0a82eb3f8 /doc.go | |
| parent | fs: Remove unused import (diff) | |
| download | go-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.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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. |