Skip to content

Commit 441a908

Browse files
committed
#72 Initialize the replycodes([]string) using make()
1 parent 4d8d337 commit 441a908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smtp/reply/lib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func Find(argv1 string, argv2 string) string {
126126
if len(argv2) == 0 { argv2 = "0" }
127127

128128
statuscode := argv2[0:1]
129-
replycodes := []string{}
129+
replycodes := make([]string, 0, 50)
130130

131131
if statuscode == "2" || statuscode == "4" || statuscode == "5" {
132132
// The first character of the 2nd argument is 2 or 4 or 5

0 commit comments

Comments
 (0)