chore: linter: intrange

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent 465804161b
commit a1069a0d70
16 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -181,7 +181,7 @@ func luhnify(s string) (string, error) {
}
res := make([]byte, 4*(13+1))
for i := 0; i < 4; i++ {
for i := range 4 {
p := s[i*13 : (i+1)*13]
copy(res[i*(13+1):], p)
l, err := luhn32(p)
@@ -199,7 +199,7 @@ func unluhnify(s string) (string, error) {
}
res := make([]byte, 52)
for i := 0; i < 4; i++ {
for i := range 4 {
p := s[i*(13+1) : (i+1)*(13+1)-1]
copy(res[i*13:], p)
l, err := luhn32(p)
@@ -216,7 +216,7 @@ func unluhnify(s string) (string, error) {
func chunkify(s string) string {
chunks := len(s) / 7
res := make([]byte, chunks*(7+1)-1)
for i := 0; i < chunks; i++ {
for i := range chunks {
if i > 0 {
res[i*(7+1)-1] = '-'
}