Skip to content

Commit ce85428

Browse files
committed
#72 Initialize the token, other, and alter using make()
1 parent 81fe1be commit ce85428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rfc5322/received.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func Received(argv1 string) [6]string {
4242
label := [6]string{"from", "by", "via", "with", "id", "for"}
4343
skips := []string{"unknown", "localhost", "[127.0.0.1]", "[IPv6:::1]"}
4444
chars := []string{"(", ")", ";"} // Removed by strings.ReplaceAll()
45-
token := make(map[string]string)
46-
other := []string{}
47-
alter := []string{}
45+
token := make(map[string]string, 6)
46+
other := make([]string, 6)
47+
alter := make([]string, 6)
4848
right := false
4949

5050
for j, e := range recvd {

0 commit comments

Comments
 (0)