Skip to content

Commit 758b054

Browse files
committed
#72 Initialize the token([]uint16) using make()
1 parent 4af9d1e commit 758b054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smtp/status/test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func Test(argv1 string) bool {
1717
// @return bool false = Invalid status code, true = Valid status code
1818
if len(argv1) < 5 || len(argv1) > 7 { return false }
1919

20-
token := []int16{} // Each digit like [5,7,26] converted from "5.7.26"
20+
token := make([]int16, 0, 3) // Each digit like [5,7,26] converted from "5.7.26"
2121
for _, e := range strings.Split(argv1, ".") {
2222
digit, nyaan := strconv.Atoi(e); if nyaan == nil { token = append(token, int16(digit)) }
2323
}

0 commit comments

Comments
 (0)