mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
Run modernize to rewrite some older go constructs to newer ones
Mostly using slice.Sort, using min/max, slices.Concat, range of int and fmt.Appendf for byte slices instead of strings.
This commit is contained in:
@ -9,10 +9,7 @@ func TXTStrings(s string) string {
|
||||
|
||||
r := "(\n"
|
||||
for len(s) > 0 {
|
||||
n := len(s)
|
||||
if n > 100 {
|
||||
n = 100
|
||||
}
|
||||
n := min(len(s), 100)
|
||||
if r != "" {
|
||||
r += " "
|
||||
}
|
||||
|
Reference in New Issue
Block a user