Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsbinder committed Sep 19, 2023
1 parent cd0ce1b commit 40328a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
// Verify checks that the provenance conforms to expectations, returning a
// list of errors whenever the verification failed.
//
//nolint:cyclop
//nolint:gocognit

Check failure on line 31 in internal/verifier/verifier.go

View workflow job for this annotation

GitHub Actions / linting

directive `//nolint:gocognit` is unused for linter "gocognit" (nolintlint)
//nolint:gocyclo
func Verify(provenances []model.ProvenanceIR, verOpts *pb.VerificationOptions) error {

Check failure on line 32 in internal/verifier/verifier.go

View workflow job for this annotation

GitHub Actions / linting

cognitive complexity 104 of func `Verify` is high (> 30) (gocognit)
if provenances == nil {
panic(fmt.Errorf("provenances must not be nil"))
Expand Down

0 comments on commit 40328a6

Please sign in to comment.