Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: golangci-lint failing due nil check #333

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

kairoaraujo
Copy link
Collaborator

@kairoaraujo kairoaraujo commented Aug 22, 2024

What this PR does / why we need it

Added the fix and introduced make lint for local tests.

dsse/verify.go:98:6: S1009: should omit nil check; len() for []byte is defined as zero (gosimple)
                if sig.Certificate != nil && len(sig.Certificate) > 0 {
                   ^

Acceptance Criteria Met

  • Docs changes if needed
  • Testing changes if needed
  • All workflow checks passing (automatically enforced)
  • All review conversations resolved (automatically enforced)
  • DCO Sign-off

Special notes for your reviewer:

Added the fix and introduced `make lint` for local tests

dsse/verify.go:98:6: S1009: should omit nil check; len() for []byte is defined as zero (gosimple)
                if sig.Certificate != nil && len(sig.Certificate) > 0 {
                   ^

Signed-off-by: Kairo Araujo <kairo.araujo@testifysec.com>
@matglas
Copy link
Contributor

matglas commented Aug 22, 2024

That fix looks good to me.

@kairoaraujo kairoaraujo self-assigned this Aug 22, 2024
@jkjell jkjell merged commit 6f4bff5 into in-toto:main Aug 22, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants