chore: style fixes from go fix (#10846)

Just `go fix ./...`

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-08-05 20:23:22 +02:00
committed by GitHub
parent 946e2b83a1
commit 8ea09c0094
144 changed files with 211 additions and 315 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ func TestEnDecryptName(t *testing.T) {
}
for _, tc := range cases {
var prev string
for i := 0; i < 5; i++ {
for range 5 {
enc := encryptName(tc, &key)
if prev != "" && prev != enc {
t.Error("name should always encrypt the same")
@@ -124,7 +124,7 @@ func TestEnDecryptBytes(t *testing.T) {
}
for _, tc := range cases {
var prev []byte
for i := 0; i < 5; i++ {
for range 5 {
enc := encryptBytes(tc, &key)
if bytes.Equal(enc, prev) {
t.Error("encryption should not repeat")