Skip to content

Commit

Permalink
chore: replace for with range loop
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Jan 17, 2025
1 parent cfcfb2e commit 0c14f5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/corpus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ func getTestCasesForFile(filename string, content string) []TestCase {
parts := []string{}

// remove empty parts
for i := 0; i < len(partsWithEmptyParts); i++ {
if partsWithEmptyParts[i] != "" {
parts = append(parts, partsWithEmptyParts[i])
for _, part := range partsWithEmptyParts {
if part != "" {
parts = append(parts, part)
}
}

Expand Down

0 comments on commit 0c14f5f

Please sign in to comment.