Skip to content

Commit 185923f

Browse files
committed
#72 Initialize the permessage, and keystrings using make()
1 parent e0cbc13 commit 185923f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lhost/via-domino.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ func init() {
5252
},
5353
}
5454

55-
permessage := map[string]string{} // Store values of each Per-Message field
56-
keystrings := []string{} // Key list of permessage
55+
permessage := make(map[string]string, 4) // Store values of each Per-Message field
56+
keystrings := make([]string, 0, 4) // Key list of permessage
5757
dscontents := []sis.DeliveryMatter{{}}
5858
emailparts := rfc5322.Part(&bf.Payload, boundaries, false)
5959
readcursor := uint8(0) // Points the current cursor position

0 commit comments

Comments
 (0)