Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Assassin718 committed Oct 18, 2024
1 parent c47a2e1 commit e2df97b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/engine/trigger/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ func GenerateRandomJSONLogToFile(ctx context.Context, speed, totalTime int, path
`{"url": "POST /PutData?Category=asdjhoiasjdoOpLog HTTP/1.1", "ip": "172.168.0.1", "user-agent": "aliyun-sdk-java", "request": {"status": "200", "latency": "8815"}, "time": "01/Jan/2022:10:30:28"}\n`,
}
maxLen := 0
for i := 0; i < len(JSONTemplates); i++ {
if len(JSONTemplates[i]) > maxLen {
maxLen = len(JSONTemplates[i])
for j := 0; j < len(JSONTemplates); j++ {
if len(JSONTemplates[j]) > maxLen {
maxLen = len(JSONTemplates[j])
}
}

Expand Down

0 comments on commit e2df97b

Please sign in to comment.