Skip to content

Commit 9ee0d2b

Browse files
use SplitSeq instead of Split
1 parent 674963a commit 9ee0d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

render/render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ func (m rootModel) View() string {
229229
}
230230
}
231231
str.WriteString(" > Command stdout:\n\n")
232-
sliced := strings.Split(step.result.CLICommandResult.Stdout, "\n")
233-
for _, s := range sliced {
232+
sliced := strings.SplitSeq(step.result.CLICommandResult.Stdout, "\n")
233+
for s := range sliced {
234234
str.WriteString(gray.Render(s))
235235
str.WriteByte('\n')
236236
}

0 commit comments

Comments
 (0)