We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af9d1e commit 758b054Copy full SHA for 758b054
smtp/status/test.go
@@ -17,7 +17,7 @@ func Test(argv1 string) bool {
17
// @return bool false = Invalid status code, true = Valid status code
18
if len(argv1) < 5 || len(argv1) > 7 { return false }
19
20
- token := []int16{} // Each digit like [5,7,26] converted from "5.7.26"
+ token := make([]int16, 0, 3) // Each digit like [5,7,26] converted from "5.7.26"
21
for _, e := range strings.Split(argv1, ".") {
22
digit, nyaan := strconv.Atoi(e); if nyaan == nil { token = append(token, int16(digit)) }
23
}
0 commit comments