This was kind of a special case in the branches API where the request would return a successful status code but an empty body. Unless there's an equivalent situation in deployments, you can probably safely remove those two lines.