Fix lint error
This commit is contained in:
parent
418187f925
commit
a0ae810cd6
@ -75,7 +75,10 @@ func (api *API) MarkNotificationsAsRead() error {
|
|||||||
rslt := struct {
|
rslt := struct {
|
||||||
Cursor string `json:"cursor"`
|
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 == "" {
|
if rslt.Cursor == "" {
|
||||||
panic("got blank cursor back...?")
|
panic("got blank cursor back...?")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user