Skip to content

Commit

Permalink
fix: Continue if judge can't parse version of result
Browse files Browse the repository at this point in the history
Not all results are expected to have valid versions, such as additional
resources.

fixes #204
  • Loading branch information
stepanstipl committed Aug 27, 2021
1 parent 3669c5e commit 58f8e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/judge/rego.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (j *RegoJudge) Eval(input []map[string]interface{}) ([]Result, error) {

since, err := goversion.NewVersion(m["Since"].(string))
if err != nil {
return nil, err
log.Debug().Msgf("Failed to parse version: %w", err)
}

results = append(results, Result{
Expand Down

0 comments on commit 58f8e61

Please sign in to comment.