fnproject / cli

CLI tool for fnproject.
https://fnproject.io
Apache License 2.0
132 stars 66 forks source link

Defer body close after err check of HTTP response #653

Closed harryjsmith closed 2 years ago

harryjsmith commented 2 years ago

Err returned by HTTP client must be checked before doing anything with resp as resp will be nil in the err != nil case.