Skip to content

Commit

Permalink
fix: make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Sep 14, 2024
1 parent 6f0e0cf commit ce43b6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validate_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package cyclonedx

import (
"errors"
"fmt"

"github.com/xeipuuv/gojsonschema"
Expand Down Expand Up @@ -60,5 +61,5 @@ func (jv jsonValidator) Validate(bom []byte, specVersion SpecVersion) error {
errSummary += fmt.Sprintf("\n - %s", verr.String())
}

return fmt.Errorf(errSummary)
return errors.New(errSummary)
}

0 comments on commit ce43b6f

Please sign in to comment.