go-gh
go-gh copied to clipboard
fix: handle empty response body
This PR is a showcase of solution 1 for https://github.com/cli/go-gh/issues/161.
It adds an empty body check before trying to unmarshall it.