Skip to content

Commit

Permalink
doc: Explain empty line skip
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Oct 22, 2023
1 parent 6173c18 commit af394ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/stack/stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func (p *stackParser) parseStack(line string) (Stack, error) {
fullStack.WriteByte('\n') // scanner trims the newline

if len(line) == 0 {
// Empty line usually marks the end of the stack
// but we don't want to have to rely on that.
// Just skip it.
continue
}

Expand Down

0 comments on commit af394ca

Please sign in to comment.