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 Dec 14, 2023
1 parent 8fd9a12 commit a55fd48
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
}
l.e = l.next
return true
}
Expand Down

0 comments on commit a55fd48

Please sign in to comment.