Handle error in ChannelNewsFollow

This commit is contained in:
Aditya Diwakar 2020-08-06 19:31:43 -04:00
parent 8648632fc8
commit b7ef3c8e0f

View file

@ -1819,6 +1819,9 @@ func (s *Session) ChannelNewsFollow(channelID, targetID string) (st *ChannelFoll
}{targetID}
body, err := s.RequestWithBucketID("POST", endpoint, data, endpoint)
if err != nil {
return
}
err = unmarshal(body, &st)
return