Skip to content

Commit 7f1d467

Browse files
authored
Update slice.go
1 parent 5820761 commit 7f1d467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

slice.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,9 +604,9 @@ func SplitKVRowsCallback(rows string, callback func(k, v string) error, seperato
604604
}
605605

606606
func TrimSpaceForRows(rows string) []string {
607-
rows := strings.Split(rows, StrLF)
608-
res := make([]string, 0, len(rows))
609-
for _, row := range rows {
607+
rowSlice := strings.Split(rows, StrLF)
608+
res := make([]string, 0, len(rowSlice))
609+
for _, row := range rowSlice {
610610
row = strings.TrimSpace(row)
611611
if len(row) == 0 {
612612
continue

0 commit comments

Comments
 (0)