Skip to content

Commit

Permalink
fix: ignore empty lines
Browse files Browse the repository at this point in the history
closes #8
  • Loading branch information
MrMarble committed May 18, 2024
1 parent 642f0a4 commit 8acef5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/asciicast/asciicast.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ func (c *Cast) fromJSON(data string) error {
}

for _, line := range lines {
if line == "" {
continue
}
var event Event

err := json.Unmarshal([]byte(line), &event)
Expand Down

0 comments on commit 8acef5c

Please sign in to comment.