mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 18:17:03 +00:00
chore: more small lint/perf fixes (#493)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
@@ -79,9 +79,9 @@ func (s *StoreManager) Deliver(
|
||||
tstamp := now.UTC().Format(recvdTimeFmt)
|
||||
|
||||
// Process inbound message through extensions.
|
||||
mailboxes := make([]string, len(recipients))
|
||||
for i, recip := range recipients {
|
||||
mailboxes[i] = recip.Mailbox
|
||||
mailboxes := make([]string, 0, len(recipients))
|
||||
for _, recip := range recipients {
|
||||
mailboxes = append(mailboxes, recip.Mailbox)
|
||||
}
|
||||
|
||||
// Construct InboundMessage event and process through extensions.
|
||||
|
||||
Reference in New Issue
Block a user