From fae23cc243ad9ec81b017869f492255fccb4198a Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 25 Aug 2024 19:01:52 -0700 Subject: [PATCH] Fix lint errors --- pkg/scraper/api_types_notifications.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/scraper/api_types_notifications.go b/pkg/scraper/api_types_notifications.go index ebfe37d..0dc66ae 100644 --- a/pkg/scraper/api_types_notifications.go +++ b/pkg/scraper/api_types_notifications.go @@ -2,9 +2,9 @@ package scraper import ( "net/url" - "strings" "regexp" "sort" + "strings" ) func (api API) GetNotifications(cursor string) (TweetResponse, error) { @@ -97,9 +97,8 @@ func ParseSingleNotification(n APINotification) Notification { ret.Type = 2 } else if strings.Contains(n.Message.Text, "There was a login to your account") { ret.Type = 9 - } else { - // TODO: more types? } + // TODO: more types? ret.SentAt = TimestampFromUnixMilli(n.TimestampMs) // TODO: caller should set ret.UserID