From a0ae810cd6307d2119f775d4bafe777d59d3aa82 Mon Sep 17 00:00:00 2001 From: Alessio Date: Wed, 6 Nov 2024 21:58:44 -0800 Subject: [PATCH] Fix lint error --- pkg/scraper/api_types_notifications.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/scraper/api_types_notifications.go b/pkg/scraper/api_types_notifications.go index 95a91af..7271263 100644 --- a/pkg/scraper/api_types_notifications.go +++ b/pkg/scraper/api_types_notifications.go @@ -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...?") }