refactor(protocol): clear staticcheck warnings on AttestationChallenge check#255
refactor(protocol): clear staticcheck warnings on AttestationChallenge check#255robert-wallis wants to merge 1 commit intogo-webauthn:masterfrom
Conversation
…e check The first warning from `staticcheck` is about Yoda conditions (which hides another warning) > protocol/attestation_androidkey.go:114:5: don't use Yoda conditions (ST1017) The hidden warning on the same line with `bytes.Compare(...) != 0` is > protocol/attestation_androidkey.go:114:5: should use !bytes.Equal(decoded.AttestationChallenge, clientDataHash) instead (S1004)
WalkthroughThe recent update modifies the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- protocol/attestation_androidkey.go (1 hunks)
Files skipped from review due to trivial changes (1)
- protocol/attestation_androidkey.go
The first warning from
staticcheckis about Yoda conditions (which hides another warning)The hidden warning on the same line with
bytes.Compare(...) != 0is