From 0c14f5fbea2ba8ae35499eb5999fb92c7f863080 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 17 Jan 2025 20:55:24 +0100 Subject: [PATCH] chore: replace for with range loop --- test/corpus_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/corpus_test.go b/test/corpus_test.go index b5a0e4b..3e3a05c 100644 --- a/test/corpus_test.go +++ b/test/corpus_test.go @@ -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) } }