Skip to content

Commit 12b25e0

Browse files
committed
Use make() only for readslices([]string) #72
1 parent a7438d9 commit 12b25e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lhost/via-courier.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ func init() {
5050
"networkerror": []string{"DNS lookup failed."},
5151
}
5252

53-
permessage := make(map[string]string, 4) // Store values of each Per-Message field
54-
keystrings := make([]string, 0, 4) // Key list of permessage
53+
permessage := map[string]string{} // Store values of each Per-Message field
54+
keystrings := []string{} // Key list of permessage
5555
dscontents := []sis.DeliveryMatter{{}}
5656
emailparts := rfc5322.Part(&bf.Payload, boundaries, false)
5757
readcursor := uint8(0) // Points the current cursor position
58-
readslices := make([]string, 1, 64) // Copy each line for later reference
58+
readslices := make([]string, 1, 32) // Copy each line for later reference
5959
recipients := uint8(0) // The number of 'Final-Recipient' header
6060
thecommand := "" // An SMTP command name begins with the string ">>>"
6161
v := &(dscontents[len(dscontents) - 1])

0 commit comments

Comments
 (0)