Fix lint error

This commit is contained in:
Alessio 2024-11-06 21:58:44 -08:00
parent 418187f925
commit a0ae810cd6

View File

@ -75,7 +75,10 @@ func (api *API) MarkNotificationsAsRead() error {
rslt := struct {
Cursor string `json:"cursor"`
}{}
api.do_http_POST("https://twitter.com/i/api/2/notifications/all/last_seen_cursor.json", "cursor=" + cursor, &rslt)
err := api.do_http_POST("https://twitter.com/i/api/2/notifications/all/last_seen_cursor.json", "cursor=" + cursor, &rslt)
if err != nil {
return err
}
if rslt.Cursor == "" {
panic("got blank cursor back...?")
}