mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-29 15:02:30 +00:00
Apply go fix to simplify using modern features
This patch contains the result of running `go fix ./...`, which applies simplifications that make use of modern language features. There are no logic or behaviour changes.
This commit is contained in:
@@ -229,7 +229,7 @@ func TestFetch(t *testing.T) {
|
||||
func TestPolicyTooBig(t *testing.T) {
|
||||
// Construct a valid but very large JSON as a policy.
|
||||
raw := `{"version": "STSv1", "mode": "enforce", "mx": [`
|
||||
for i := 0; i < 2000; i++ {
|
||||
for i := range 2000 {
|
||||
raw += fmt.Sprintf("\"mx%d\", ", i)
|
||||
}
|
||||
raw += `"mxlast"], "max_age": 100}`
|
||||
|
||||
Reference in New Issue
Block a user