Skip to content

Commit

Permalink
fix(jsonblob): check for error in Next
Browse files Browse the repository at this point in the history
Signed-off-by: RTann <[email protected]>
  • Loading branch information
RTann committed Jan 4, 2024
1 parent 07ae3f0 commit b55b68d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libvuln/jsonblob/jsonblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (l *Loader) Next() bool {
}
}
}
if l.Err() != nil {
return false
}

Check warning on line 108 in libvuln/jsonblob/jsonblob.go

View check run for this annotation

Codecov / codecov/patch

libvuln/jsonblob/jsonblob.go#L107-L108

Added lines #L107 - L108 were not covered by tests
l.e = l.next
return true
}
Expand Down

0 comments on commit b55b68d

Please sign in to comment.