From 79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 24 Apr 2022 18:53:32 +0200 Subject: Replace `interface{}` by `any` --- internal/imap/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/imap') diff --git a/internal/imap/connection.go b/internal/imap/connection.go index b93a61f..8c0f59c 100644 --- a/internal/imap/connection.go +++ b/internal/imap/connection.go @@ -125,7 +125,7 @@ func (conn *connection) ensureFolder(folder Folder) error { } switch { - case found == 0 || (found == 1 && util.StrContains(mbox.Attributes, imap.NoSelectAttr)): + case found == 0 || (found == 1 && util.Contains(mbox.Attributes, imap.NoSelectAttr)): return conn.createFolder(folder.str) case found == 1: conn.mailboxes.add(mbox) @@ -137,7 +137,7 @@ func (conn *connection) ensureFolder(folder Folder) error { func (conn *connection) delete(uids []uint32) error { storeItem := imap.FormatFlagsOp(imap.AddFlags, true) - deleteFlag := []interface{}{imap.DeletedFlag} + deleteFlag := []any{imap.DeletedFlag} seqSet := new(imap.SeqSet) seqSet.AddNum(uids...) -- cgit v1.2.3-70-g09d2