From 503fa62794ccca8e27cde99f3fbabf41adad5f3f Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 29 Feb 2024 10:54:32 +0100 Subject: Replace util.Contains with slices.Contains --- internal/feed/item.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/feed') diff --git a/internal/feed/item.go b/internal/feed/item.go index 79a971c..bc1865a 100644 --- a/internal/feed/item.go +++ b/internal/feed/item.go @@ -4,6 +4,7 @@ import ( "encoding/base64" "encoding/json" "fmt" + "slices" "strings" "time" @@ -11,7 +12,6 @@ import ( "github.com/google/uuid" "github.com/Necoro/feed2imap-go/pkg/config" - "github.com/Necoro/feed2imap-go/pkg/util" ) type feedImage struct { @@ -65,7 +65,7 @@ func (item *Item) FeedLink() string { } func (item *Item) AddReason(reason string) { - if !util.Contains(item.reasons, reason) { + if !slices.Contains(item.reasons, reason) { item.reasons = append(item.reasons, reason) } } -- cgit v1.2.3-70-g09d2